Seat Switching & F9 engine toggle

+ Added seat switch script; Seat-Switcher.
+ Changed Engine-Toggle.
This commit is contained in:
Jacob
2022-04-21 21:08:18 +01:00
parent 81a15a9127
commit eddc17c49f
6 changed files with 125 additions and 7 deletions
+4 -4
View File
@@ -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)