# Remove weapon from armory

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

### Export

```lua
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

```lua
local markerId = 15
local weaponId = 356

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

print(success)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.jaksam-scripts.com/jobs-creator/server/armory/remove-weapon-from-armory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
