Seat Switching & F9 engine toggle
+ Added seat switch script; Seat-Switcher. + Changed Engine-Toggle.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- Configuration
|
||||
|
||||
local button = nil -- 167 (F6 by default)
|
||||
local button = 56 -- 167 (F6 by default)
|
||||
local commandEnabled = true -- (false by default) If you set this to true, typing "/engine" in chat will also toggle your engine.
|
||||
|
||||
-- You're all set now!
|
||||
@@ -19,9 +19,9 @@ Citizen.CreateThread(function()
|
||||
Citizen.Wait(0)
|
||||
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
|
||||
|
||||
--if (IsControlJustReleased(0, button) or IsDisabledControlJustReleased(0, button)) and vehicle ~= nil and vehicle ~= 0 and GetPedInVehicleSeat(vehicle, 0) then
|
||||
--toggleEngine()
|
||||
--end
|
||||
if (IsControlJustReleased(0, button) or IsDisabledControlJustReleased(0, button)) and vehicle ~= nil and vehicle ~= 0 and GetPedInVehicleSeat(vehicle, 0) then
|
||||
toggleEngine()
|
||||
end
|
||||
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user