This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lib.onCache('ped', function(value) | |
| SetPedConfigFlag(value, 241, true) -- PED_FLAG_DISABLE_STOPPING_VEHICLE_ENGINE | |
| SetPedConfigFlag(value, 429, true) -- PED_FLAG_DISABLE_STARTING_VEHICLE_ENGINE | |
| end) | |
| lib.addKeybind({ | |
| name = 'engine', | |
| description = 'Engine', | |
| defaultKey = 'Y', | |
| onPressed = function(self) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local playerPed = PlayerPedId() | |
| Citizen.CreateThread(function() | |
| while true do | |
| local currentPlayerPed = PlayerPedId() | |
| if currentPlayerPed ~= playerPed then | |
| playerPed = currentPlayerPed | |
| SetPedConfigFlag(playerPed, 241, true) -- PED_FLAG_DISABLE_STOPPING_VEHICLE_ENGINE |