> ## 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.

# SetWeaponExperience

Set the weapon experience of the specified weapon

<table>
  <thead>
    <tr>
      <th scope="col">
        Argument
      </th>

      <th scope="col">
        Data Type
      </th>

      <th scope="col">
        Nedeed
      </th>

      <th scope="col">
        Default
      </th>

      <th scope="col">
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`weapon`</td>
      <td>number</td>
      <td>✅</td>
      <td>`-`</td>
      <td>The weapon hash</td>
    </tr>

    <tr>
      <td>`experience`</td>
      <td>number</td>
      <td>✅</td>
      <td>`-`</td>
      <td>The experience</td>
    </tr>
  </tbody>
</table>

> [accordion] Example
>
> ```lua theme={null}
> local retval, weapon = GetCurrentPedWeapon(PlayerPedId())
>
> exports["utility_weapons"]:SetWeaponExperience(weapon, 100)
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.