There is no problem with it.
INPUT_VEH_CINEMATIC_DOWN_ONLY, MOUSE - SCROLL DOWN, NUMPAD +
The Key is {97}, it contains MouseScroll(Down) and NUMPAD +.
Enjoy
There is no problem with it.
INPUT_VEH_CINEMATIC_DOWN_ONLY, MOUSE - SCROLL DOWN, NUMPAD +
The Key is {97}, it contains MouseScroll(Down) and NUMPAD +.
Enjoy
-- Change 'false' to 'true' to toggle the engine automatically on when entering a vehicle
OnAtEnter = false
-- Change 'false' to 'true' to use a key instead of a button
UseKey = true
if UseKey then
-- Change this to change the key to toggle the engine (Other Keys at wiki.fivem.net/wiki/Controls)
ToggleKey = /engine
end
is that right I want the command /engine to turn “engine on”
No. You need toset UseKey to false then go to cliente.lua and change IsControlPressed for a chat command
My cars are not turning on…
No… just set UseKey
to false
and it will work with the command /engine
I’m having a problem, when I turn off the car and leave it the same keeps turning it on and off. How to fix?
its incompatible with esx_aiomenu and any vehicle failure script and fuel script
but how to fix?
51-55 is still good frames, tf you on about. God forbid you pc elitist’s fall under 60fps you cry.
@Flatracer Hey, friend, can instead of a message in the chat will make the notification above the map, it is more beautiful and “more efficient”
EngineToggle_notify.rar (1.8 KB)
Nice Job!
The issue im running into is that Police vehicles won’t toggle the engine. Other vehicles turn off, but any type of police vehicle will not allow for the engine to be toggle on/off? Any thoughts or suggestions?
Did you edit any part of the server.lua?
No I did not
The driver starts shaking before starting the engine, any solution?
To fix this in RealisticVehicleFailure:
In client/main.lua
On line 334 ( SetVehicleUndriveable(vehicle,false) )
add this code in new line after:
TriggerEvent('EngineToggle:RPDamage', true)
On line 338 ( SetVehicleUndriveable(vehicle,true) )
add this code in new line after:
TriggerEvent('EngineToggle:RPDamage', false)
hello , this script is so good and i really like it , but when you spawn in cars , engines are off…
(a lot of ppl dont know how they can turn engine on (new players))
You mean here right ?
if healthEngineCurrent > cfg.engineSafeGuard+1 then
SetVehicleUndriveable(vehicle,false)
end
if healthEngineCurrent <= cfg.engineSafeGuard+1 and cfg.limpMode == false then
SetVehicleUndriveable(vehicle,true)
end
Cuz i found 2 other locations with: SetVehicleUndriveable