Initial commit

This commit is contained in:
Jacob
2021-12-03 01:05:09 +00:00
commit c1add166a1
3511 changed files with 463300 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script 'cl_vengine.lua'
+34
View File
@@ -0,0 +1,34 @@
-- Configuration
local button = nil -- 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!
-- Code, no need to modify this, unless you know what you're doing or you want to fuck shit up.
-- No support will be provided if you modify this part below.
Citizen.CreateThread(function()
if commandEnabled then
RegisterCommand('engine', function()
toggleEngine()
end, false)
end
while true do
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
end
end)
function toggleEngine()
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if vehicle ~= nil and vehicle ~= 0 and GetPedInVehicleSeat(vehicle, 0) then
SetVehicleEngineOn(vehicle, (not GetIsVehicleEngineRunning(vehicle)), false, true)
end
end