5 files changed
+59
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
if GetResourceState('BigDaddy-Fuel') ~= 'started' then return end
|
||||||
|
Fuel = {}
|
||||||
|
|
||||||
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
|
return exports['BigDaddy-Fuel']:GetFuel(vehicle)
|
||||||
|
end
|
||||||
|
|
||||||
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
|
if not DoesEntityExist(vehicle) then return end
|
||||||
|
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
|
||||||
|
end
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
if GetResourceState('esx-sna-fuel') ~= 'started' then return end
|
||||||
|
Fuel = {}
|
||||||
|
|
||||||
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
|
return exports['esx-sna-fuel']:GetFuel(vehicle)
|
||||||
|
end
|
||||||
|
|
||||||
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
|
if not DoesEntityExist(vehicle) then return end
|
||||||
|
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
|
||||||
|
end
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
if GetResourceState('qs-fuelstations') ~= 'started' then return end
|
||||||
|
|
||||||
|
Fuel = {}
|
||||||
|
|
||||||
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
|
return exports['qs-fuelstations']:GetFuel(vehicle)
|
||||||
|
end
|
||||||
|
|
||||||
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
|
if not DoesEntityExist(vehicle) then return end
|
||||||
|
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
|
||||||
|
end
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
if GetResourceState('F_RealCarKeysSystem') ~= 'started' then return end
|
||||||
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
|
||||||
|
end
|
||||||
|
|
||||||
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||||
|
return
|
||||||
|
end
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
if GetResourceState('mono_carkeys') ~= 'started' then return end
|
||||||
|
|
||||||
|
VehicleKey = VehicleKey or {}
|
||||||
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
if type(plate) ~= 'string' then return end
|
||||||
|
TriggerServerEvent('mono_carkeys:CreateKey', plate)
|
||||||
|
end
|
||||||
|
|
||||||
|
VehicleKey.RemoveKeys = function(vehicle, plate)
|
||||||
|
if type(plate) ~= 'string' then return end
|
||||||
|
TriggerServerEvent('mono_carkeys:DeleteKey', 1, plate)
|
||||||
|
end
|
||||||
Reference in new issue
Block a user