Skip to content

Commit

Permalink
Disable Test Command
Browse files Browse the repository at this point in the history
  • Loading branch information
Codine authored Sep 10, 2022
1 parent 2ae9f33 commit 93048a7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local props = {
'prop_gas_pump_old3',
}
local refueling = false

-- Functions
local function ManageFuelUsage(vehicle)
if not DecorExistOn(vehicle, Config.FuelDecor) then
Expand All @@ -31,10 +32,11 @@ local function ManageFuelUsage(vehicle)
end
end

RegisterCommand('setfuel', function ()
local vehicle = QBCore.Functions.GetClosestVehicle()
SetFuel(vehicle, 15)
end, false)
-- THIS IS A TEST COMMAND! DO NOT HAVE THIS ENABLED ON YOUR LIVE SERVER!!!
-- RegisterCommand('setfuel', function ()
-- local vehicle = QBCore.Functions.GetClosestVehicle()
-- SetFuel(vehicle, 15)
-- end, false)

local function GlobalTax(value)
local tax = (value / 100 * Config.GlobalTax)
Expand Down Expand Up @@ -318,7 +320,6 @@ RegisterNetEvent('cdn-fuel:client:RefuelVehicle', function(data)
end)

-- Target Exports --

exports['qb-target']:AddTargetModel(props, {
options = {
{
Expand Down Expand Up @@ -365,4 +366,4 @@ CreateThread(function()
},
distance = 1.5,
})
end)
end)

0 comments on commit 93048a7

Please sign in to comment.