Skip to content

Commit

Permalink
fix(server): db default vehicle types
Browse files Browse the repository at this point in the history
atleast i hope..
  • Loading branch information
mikigoalie committed Mar 29, 2023
1 parent 47a437e commit af7ae57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ lib.callback.register('lsrp_vehicleShop:server:addVehicle', function(source, veh
_vehProps.plate = getPlate()
end

local success = MySQL.insert.await('INSERT INTO owned_vehicles (owner, plate, vehicle, stored, type) VALUES (?, ?, ?, ?, ?)', {xPlayer.identifier, _vehProps.plate, json.encode(_vehProps), vehicleSpot ~= 0, Config.vehicleShops[_shopIndex].vehicleList})
local success = MySQL.insert.await('INSERT INTO owned_vehicles (owner, plate, vehicle, stored, type) VALUES (?, ?, ?, ?, ?)', {xPlayer.identifier, _vehProps.plate, json.encode(_vehProps), vehicleSpot ~= 0, Config.vehicleList[Config.vehicleShops[_shopIndex].vehicleList][_selected].dbData})
print(('DSUICCCESS? %s'):format(success))
if vehicleSpot == 0 then
ESX.OneSync.SpawnVehicle(data.vehicleModel, Config.vehicleShops[_shopIndex].vehicleSpawnCoords.xyz, Config.vehicleShops[_shopIndex].vehicleSpawnCoords.w, _vehProps, function(NetworkId)
Expand Down

0 comments on commit af7ae57

Please sign in to comment.