Remove weapon from armory

To add a weapon in a marker ID for a specific player

Export

exports["jobs_creator"]:removeWeaponFromArmory(markerId, weaponId)

Parameters

Name
Data Type
Description

markerId

integer

The marker ID

weaponId

integer

Weapon ID in the database, can be seen in exports["jobs_creator"]:getAllArmoryWeapons(markerId)

Return value

Name
Data Type
Description

isSuccessful

boolean

If the weapon is removed or not

Example

local markerId = 15
local weaponId = 356

local success = exports["jobs_creator"]:removeWeaponFromArmory(markerId, weaponId)

print(success)

Last updated