Update client.lua

error
This commit is contained in:
jim gordon authored and GitHub committed 2025-02-07 19:33:03 +00:00
1 parent 6175bc7bcc
commit e0ed4c1d9b
1 file changed
+6 -8
@@ -1,12 +1,10 @@
if GetResourceState('qs-fuelstations') ~= 'started' then return end if GetResourceState('F_RealCarKeysSystem') ~= 'started' then return end
Fuel = {} VehicleKey = {}
Fuel.GetFuel = function(vehicle) VehicleKey.GiveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return 0.0 end TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate)
return exports['qs-fuelstations']:GetFuel(vehicle)
end end
Fuel.SetFuel = function(vehicle, fuel) VehicleKey.RemoveKeys = function(vehicle, plate)
if not DoesEntityExist(vehicle) then return end return
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
end end