From e0ed4c1d9b0e296008a490668b10ee5f6f5140d0 Mon Sep 17 00:00:00 2001 From: jim gordon <110393030+jimgordon20@users.noreply.github.com> Date: Fri, 7 Feb 2025 19:33:03 +0000 Subject: [PATCH] Update client.lua error --- modules/vehicleKey/F_RealCarKeysSystem/client.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/vehicleKey/F_RealCarKeysSystem/client.lua b/modules/vehicleKey/F_RealCarKeysSystem/client.lua index 16f518e..95b0a88 100644 --- a/modules/vehicleKey/F_RealCarKeysSystem/client.lua +++ b/modules/vehicleKey/F_RealCarKeysSystem/client.lua @@ -1,12 +1,10 @@ -if GetResourceState('qs-fuelstations') ~= 'started' then return end -Fuel = {} +if GetResourceState('F_RealCarKeysSystem') ~= 'started' then return end +VehicleKey = {} -Fuel.GetFuel = function(vehicle) - if not DoesEntityExist(vehicle) then return 0.0 end - return exports['qs-fuelstations']:GetFuel(vehicle) +VehicleKey.GiveKeys = function(vehicle, plate) + TriggerServerEvent('F_RealCarKeysSystem:generateVehicleKeys', plate) end -Fuel.SetFuel = function(vehicle, fuel) - if not DoesEntityExist(vehicle) then return end - return exports['qs-fuelstations']:SetFuel(vehicle, fuel) +VehicleKey.RemoveKeys = function(vehicle, plate) + return end