mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 03:08:52 +00:00
Fixed playerdata not updating, proper mysql insert
This commit is contained in:
@@ -629,6 +629,7 @@ end
|
||||
|
||||
function OpenHelicopterSpawnerMenu(hospital, partNum)
|
||||
local playerCoords = GetEntityCoords(PlayerPedId())
|
||||
ESX.PlayerData = ESX.GetPlayerData()
|
||||
local elements = {
|
||||
{label = _U('helicopter_garage'), action = 'garage'},
|
||||
{label = _U('helicopter_store'), action = 'store_garage'},
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ ESX.RegisterServerCallback('esx_ambulancejob:buyJobVehicle', function(source, cb
|
||||
if xPlayer.getMoney() >= price then
|
||||
xPlayer.removeMoney(price)
|
||||
|
||||
MySQL.Async.execute('INSERT INTO owned_vehicles (owner, vehicle, plate, type, job, stored) VALUES (@owner, @vehicle, @plate, @type, @job, @stored)', {
|
||||
MySQL.Async.execute('INSERT INTO owned_vehicles (`owner`, `vehicle`, `plate`, `type`, `job`, `stored`) VALUES (@owner, @vehicle, @plate, @type, @job, @stored)', {
|
||||
['@owner'] = xPlayer.identifier,
|
||||
['@vehicle'] = json.encode(vehicleProps),
|
||||
['@plate'] = vehicleProps.plate,
|
||||
|
||||
Reference in New Issue
Block a user