Get player vehicles in marker ID

To get all vehicles owned by a player ID in a specific buyable garage marker ID

Export

exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId)

Parameters

NameData TypeDescription

playerId

integer

Player's server ID

markerId

integer

Marker ID

Return value

NameData TypeDescription

vehicles

table

Table with all vehicles owned by the player in the garage, key is vehicle ID and value is the vehicle data

Example

local playerId = 1
local markerId = 252
local playerVehiclesInMarker = exports["jobs_creator"]:getPlayerVehiclesInMarkerId(playerId, markerId)

print(ESX.DumpTable(playerVehiclesInMarker))

Last updated