Get all vehicles of player
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
To get all vehicles owned by a player ID in all buyable garages
exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId)
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
local playerId = 4
local vehicles = exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId)
print("Player vehicles:")
print(ESX.DumpTable(vehicles))