Skip to content

Commit

Permalink
fixed usage of boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
swkeep committed Sep 23, 2022
1 parent 28276cf commit 3b25da1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/menu/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function keep_menu:vehicles_inside_category(model, lebel, icon)

for k, vehicle in pairs(Cachedata[model]) do
local state = 'out'
if vehicle.state == 1 then state = 'In' end
if vehicle.state == true then state = 'In' end
Menu[#Menu + 1] = {
header = 'Name: ' .. vehicle.name,
subheader = 'Model: ' .. lebel,
Expand Down
4 changes: 2 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Config = Config or {}

Config.fuel_script = 'keep-fuel'
Config.fuel_script = 'LegacyFuel'

Config.AllowledList = {
'TOA30976'
'LQB94352'
}

Config.MagicTouch = false
Expand Down
2 changes: 1 addition & 1 deletion server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ RegisterNetEvent("keep-jobgarages:server:update_state", function(plate, properti
return
end
local STATE = MySQL.Sync.fetchScalar('SELECT state FROM keep_garage WHERE plate = ?', { plate })
if STATE == 0 then
if STATE == false then
-- save damages too
if properties ~= nil then
local s = 'UPDATE keep_garage SET state = ?, garage = ? ,fuel = ? ,engine = ?, body = ?, metadata = ? WHERE plate = ?'
Expand Down

0 comments on commit 3b25da1

Please sign in to comment.