Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Request Looking for someone that knows how to add weapon icons to addon weapons

pieterpan

Member
Joined
Aug 13, 2021
Messages
3
Reaction score
0
Points
156
So i got these new weapon addons for FiveM, but it appears that they dont have a weapon icon. Someone thats willing to help?
 

Ballzzee

Gold Elite
Joined
Jul 30, 2021
Messages
38
Reaction score
6,605
Points
306
if you are using NPbase or ESX you need to create the png images with transparent backgrounds that 100x100 and place them in "-inventory\nui\icons" folder. Edit your shared_list.js in you inventory folder and then add your *.png to the item you added in the *.js

itemList["-1075685676"] = {fullyDegrades: false, decayrate: 2.0, displayname: "9mm Pistol", price: 10, craft: [ {itemid: "copper", amount: 50 }, {itemid: "glass", amount: 80 }, {itemid: "steel", amount: 10 } ], weight: 11, nonStack: true, model: "", image: "np_pistol.png", weapon: true , deg: true} //'Pistol'

For QBcore you need to add the item in your shared.lua in your qb-core (what ever core your using)

["weapon_pistol"] = {["name"] = "weapon_pistol", ["label"] = "Colt 1911", ["weight"] = 11000, ["type"] = "weapon", ["ammotype"] = "AMMO_PISTOL", ["image"] = "pistol.png", ["unique"] = true, ["useable"] = true, ["combinable"] = nil, ["description"] = "Pistol"},

Then the *.png that you created goes in your "-inventory\ui\images" folder.
Image type and size stays the same for all three cores.

Hope this helps you
 
Last edited:

POTIII

Member
Joined
Jan 11, 2022
Messages
3
Reaction score
0
Points
156
Location
United States
if you are using NPbase or ESX you need to create the png images with transparent backgrounds that 100x100 and place them in "-inventory\nui\icons" folder. Edit your shared_list.js in you inventory folder and then add your *.png to the item you added in the *.js

itemList["-1075685676"] = {fullyDegrades: false, decayrate: 2.0, displayname: "9mm Pistol", price: 10, craft: [ {itemid: "copper", amount: 50 }, {itemid: "glass", amount: 80 }, {itemid: "steel", amount: 10 } ], weight: 11, nonStack: true, model: "", image: "np_pistol.png", weapon: true , deg: true} //'Pistol'

For QBcore you need to add the item in your shared.lua in your qb-core (what ever core your using)

["weapon_pistol"] = {["name"] = "weapon_pistol", ["label"] = "Colt 1911", ["weight"] = 11000, ["type"] = "weapon", ["ammotype"] = "AMMO_PISTOL", ["image"] = "pistol.png", ["unique"] = true, ["useable"] = true, ["combinable"] = nil, ["description"] = "Pistol"},

Then the *.png that you created goes in your "-inventory\ui\images" folder.
Image type and size stays the same for all three cores.

Hope this helps you
you think you can help me or tell me how to install these custom weapons i have ? because im adding them as items but i cant spawn them
 

BruceLee

Gold Elite
Joined
Aug 21, 2021
Messages
77
Reaction score
82
Points
231
you think you can help me or tell me how to install these custom weapons i have ? because im adding them as items but i cant spawn them
How did you install them? can i know?
 

pieterpan

Member
Joined
Aug 13, 2021
Messages
3
Reaction score
0
Points
156
I'm not using an inventory hud. I meant the weapon wheel from GTA5 itself.
 
Top