Last updated 2 years ago
To get all vehicles owned by a player ID in all buyable garages
playerId
integer
Player's server ID
vehicles
table
Table with all vehicles owned by the player in the buyable garages, key is vehicle ID and value is the vehicle data
exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId)
local playerId = 4 local vehicles = exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId) print("Player vehicles:") print(ESX.DumpTable(vehicles))