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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.luxartengineering.com/pro-laser-4/framework-guide.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.
