Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.68 KB

framework-guide.md

File metadata and controls

79 lines (55 loc) · 1.68 KB
description
Additional information for configuring Pro Laser 4 with frameworks.

📩 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" %}

[`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" %}

['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" %}

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

{% endcode %}

Sample Weapon Icons

Small

Small Brighter

Large

Large
Brighter