Get all armory weapons

To get a list of all weapons stored in a specific armory ID.

Export

exports["jobs_creator"]:getAllArmoryWeapons(markerId)

Parameters

NameData TypeDescription

markerId

integer

The marker ID

Return value

NameData TypeDescription

armoryWeapons

table

List of all weapons contained in the marker

Example

local allWeapons = getAllArmoryWeapons(markerId)

print("All players weapons in that armory")
print(ESX.DumpTable(allWeapons))

Last updated