> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetWeaponJamState

Set the weapon jam state of the specified weapon

<div class="rounded-lg overflow-hidden">
  <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
    <thead class="thead text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
      <tr>
        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Argument
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Data Type
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Nedeed
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Default
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Description
        </th>
      </tr>
    </thead>

    <tbody>
      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">`weapon`</td>
        <td class="px-6 py-4">number</td>
        <td class="px-6 py-4">✅</td>
        <td class="px-6 py-4">`-`</td>
        <td class="px-6 py-4">The weapon hash</td>
      </tr>

      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">`state`</td>
        <td class="px-6 py-4">boolean</td>
        <td class="px-6 py-4">✅</td>
        <td class="px-6 py-4">`-`</td>
        <td class="px-6 py-4">The jam state</td>
      </tr>
    </tbody>
  </table>
</div>

<br />

<Accordion title="Example" className="w-full">
  ```lua theme={null}
  local retval, weapon = GetCurrentPedWeapon(PlayerPedId())

  exports["utility_weapons"]:SetWeaponJamState(weapon, true)
  ```
</Accordion>
