i am trying to get this to work but idk what i have done wrong
here is the code
i get an error in
[CODE]
local client = LocalPlayer()
if (client:GetActiveWeapon():GetPrintName() != nil) then
draw.SimpleText(client:GetActiveWeapon():GetPrintName(), "DermaDefaultBold", 260, ScrH() - 60, Color(255, 255, 255, 255), 0, 0)
end
[/CODE]
it says its the
[CODE]
if (client:GetActiveWeapon():GetPrintName() != nil) then
[/CODE]
that gets nil
check if client:GetActiveWeapon() returns anything.
[QUOTE=James xX;48778926]check if client:GetActiveWeapon() returns anything.[/QUOTE]
ill try
[editline]28th September 2015[/editline]
[QUOTE=James xX;48778926]check if client:GetActiveWeapon() returns anything.[/QUOTE]
okey i removed GetPrintName() and on my hud it says [NULL Entity]
[editline]28th September 2015[/editline]
Returned [NULL Entity]
did 1 more check
[editline]28th September 2015[/editline]
SORRY im so dum i dident have a tool/weapon on me so of course it says null sorry
Sorry, you need to Log In to post a reply to this thread.