QBCore
QBCore setup tutorial for "Advanced Ownable Rent Creator" script
MySQL.query('SELECT * FROM player_vehicles WHERE citizenid = ? AND garage = ? AND state = ?', {pData.PlayerData.citizenid, garage, 1}, function(result)
if result[1] then
cb(result)
else
cb(nil)
end
end)AND rentable = 0MySQL.query('SELECT * FROM player_vehicles WHERE citizenid = ? AND garage = ? AND state = ? AND rentable = 0', {pData.PlayerData.citizenid, garage, 1}, function(result)
if result[1] then
cb(result)
else
cb(nil)
end
end)Last updated