Last updated 2 years ago
To get all vehicles owned by a player ID in a specific buyable garage marker ID
exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId)
local playerId = 1 local markerId = 252 local playerVehiclesInMarker = exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId) print(ESX.DumpTable(playerVehiclesInMarker))
playerId
integer
Player's server ID
markerId
Marker ID
vehicles
table
Table with all vehicles owned by the player in the garage, key is vehicle ID and value is the vehicle data