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

# GetWeaponExperience

Return the 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>
  </tbody>
</table>

> [accordion] Returns
>
> <table>
>   <thead>
>     <tr>
>       <th scope="col">
>         Type
>       </th>
>
>       <th scope="col">
>         Description
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>number</td>
>
>       <td>
>         The experience that the player has with the weapon
>       </td>
>     </tr>
>   </tbody>
> </table>

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


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