Get player vehicles in marker ID
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
To get all vehicles owned by a player ID in a specific buyable garage marker ID
exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId)
playerId
integer
Player's server ID
markerId
integer
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
local playerId = 1
local markerId = 252
local playerVehiclesInMarker = exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId)
print(ESX.DumpTable(playerVehiclesInMarker))