π₯οΈCompatibilities
RegisterServerEvent(Config.EventPrefix..':setVehicleOwned')
AddEventHandler(Config.EventPrefix..':setVehicleOwned', function (vehicleProps, vehicleModel, id)
local _source = source
local xPlayer = QBCore.Functions.GetPlayer(_source)
MySQLexecute('INSERT INTO player_vehicles (license, citizenid, vehicle, hash, mods, plate, state) VALUES (@license, @citizenid, @vehicle, @hash, @mods, @plate, @state)', {
['@license'] = xPlayer.PlayerData.license,
['@citizenid'] = xPlayer.PlayerData.citizenid,
['@vehicle'] = vehicleModel,
['@hash'] = GetHashKey(vehicleModel),
['@mods'] = json.encode(vehicleProps),
['@plate'] = vehicleProps.plate:match( "^%s*(.-)%s*$" ),
['@state'] = 0
}, function (rowsChanged)
end)
end)zerio-cardealer
PS-MDT | Version: 2.7.3
If you want the files with the correct code and you only replace:
Last updated