Skip to content

Commit

Permalink
add function for saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Alivemonstor authored Dec 19, 2024
1 parent 085c1b3 commit 3515e52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ local function GetFirstFreeSlot(items, maxSlots)
return nil
end


local function SetupShopItems(shopItems)
local items = {}
local slot = 1
Expand Down Expand Up @@ -48,6 +49,12 @@ local function SetupShopItems(shopItems)
return items
end

function IsVehicleOwned(plate)
local result = MySQL.scalar.await('SELECT 1 from player_vehicles WHERE plate = ?', { plate })
if result then return true end
return false
end

-- Exported Functions

function LoadInventory(source, citizenid)
Expand Down

0 comments on commit 3515e52

Please sign in to comment.