> For the complete documentation index, see [llms.txt](https://docs.luxartengineering.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.luxartengineering.com/pro-laser-4/framework-guide.md).

# Framework Guide

### QB-Core

**Weapon**

Create a new weapon for Pro Laser 4 with attributes in \
`qb-core/shared/weapons.lua`

{% code title="weapons.lua" %}

```lua
[`weapon_prolaser4`] = { 
    ['name'] = 'weapon_prolaser4',
    ['label'] = 'Lidar Gun',
    ['ammotype'] = 'nil',
    ['damagereason'] = 'Ticketed / Fined / Caught Speeding / Slow Down'
},
```

{% endcode %}

**Item**

Create a new item for Pro Laser 4 with attributes in \
`qb-core/shared/items.lua`

{% code title="items.lua" %}

```lua
['weapon_prolaser4'] = {
    ['name'] = 'weapon_prolaser4',
    ['label'] = 'Lidar Gun',
    ['weight'] = 1000,
    ['type'] = 'weapon',
    ['ammotype'] = 'nil',
    ['image'] = 'weapon_prolaser4.png',
    ['unique'] = true,
    ['useable'] = false,
    ['description'] = 'ProLaser4 Lidar Gun'
},
```

{% endcode %}

### Overextended

Create a new item for Pro Laser 4 with attributes in \
`ox_invetory/weapons.lua`

{% code title="weapons.lua" %}

```lua
['WEAPON_PROLASER4'] = {
	label = 'Lidar Gun',
	weight = 700,
	durability = 0.1,
},
```

{% endcode %}

### Sample Weapon Icons

<div><figure><img src="/files/vZ9DFA6so05CHxYljJwA" alt=""><figcaption><p>Small</p></figcaption></figure> <figure><img src="/files/gdDb6BR9MaC3f0wSY2at" alt=""><figcaption><p>Small Brighter</p></figcaption></figure> <figure><img src="/files/wtcx2bbkuGlIAiSLcDYY" alt=""><figcaption><p>Large</p></figcaption></figure> <figure><img src="/files/TCYQJUgchb7FodgcZ0pQ" alt=""><figcaption><p>Large<br>Brighter</p></figcaption></figure></div>
