Bypass start vehicle check
You can bypass the start vehicle check by setting the state bag canAlwaysStart to true
Example
-- This command will make the player bypass the current vehicle start conditions
RegisterCommand("startbypass", function()
local plyPed = PlayerPedId()
local plyVeh = GetVehiclePedIsIn(plyPed)
Entity(plyVeh).state.canAlwaysStart = true
end)
Note: the bypass will apply when you enter the vehicle, after that the bypass is enabled
Last updated
Was this helpful?