[How-To] Add names to custom weapons

Hello! Can you help me?
I’m trying to find the ASSAULT RIFLE name (i want to change it to “AK48”)

Can you help me with the “hash” and the weapon name?

This is wrong(right?):
Citizen.CreateThread(function()
if IsWeaponValid(273925117) then
AddTextEntry(‘WEAPON_ASSAULTRIFLE’, ‘AK47’)
end
end)

  1. Updated the tutorial, WeaponIsValid native isn’t needed. was never needed, idk why I put that there.

  2. Thats not the name tag. Search in the META “HumanNameHash” and you’ll find it

hye is there any tutorial to add icon add on weapon to hud wheel?

1 Like

I don’t think you can change the name of in game weapons

image i’ve tried here with the pistol and other but not working

can someone help me pls

can i get some help please

Is there a way to rename guns that are already in game?

Here is what i did

function AddTextEntry(key, value)
	Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end

Citizen.CreateThread(function()
    AddTextEntry("WT_PIST_CBT", "Glock 17")
    AddTextEntry("WT_RIFLE_CBN", "Colt M4A1")
    AddTextEntry("WT_GOLFCLUB", "Katana")
end)

All works well

2 Likes

image
Uploading: image.png…
help me, please

Thank you

is there a way to put a picture there too
i don’t care if they are gta picture just want pics because it doesn’t look good without pics

how to add pics can u pls tell :slight_smile:

how to add pics for custom guns ???

Technically possible, but can be fairly complicated. It involves making edits to the hud.gfx if you’re curious to look into it though.

is there like a tutorial or something ???