Skip to content

Commit

Permalink
Merge pull request #14 from gononono64/main
Browse files Browse the repository at this point in the history
🐂 Updating to current version of oxmysql (2.6.0)
  • Loading branch information
GhzGarage authored May 14, 2023
2 parents 7f8a8a4 + 46fbccc commit d3bec2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local function CreateObjectId()
end

local function IsVehicleOwned(plate)
local result = MySQL.Sync.fetchScalar('SELECT plate FROM player_vehicles WHERE plate = ?', {plate})
local result = MySQL.scalar.await('SELECT plate FROM player_vehicles WHERE plate = ?', {plate})
return result
end

Expand Down Expand Up @@ -341,7 +341,7 @@ end)
AddEventHandler('onResourceStart', function(resourceName)
if resourceName == GetCurrentResourceName() then
CreateThread(function()
MySQL.Async.execute("DELETE FROM stashitems WHERE stash='policetrash'")
MySQL.query.await("DELETE FROM stashitems WHERE stash='policetrash'")
end)
end
end)
Expand Down

0 comments on commit d3bec2d

Please sign in to comment.