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

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