• Need help with a HUD Problem
    0 replies, posted
I want my HUD to show the weapon name but it is making this error in the console that shouldn't appear! [Lua] [ERROR] lua/includes/modules/draw.lua:263: attempt to index field 'pos' (a nil value) 1. Text - lua/includes/modules/draw.lua:263 2. v - addons/vj base/lua/autorun/vj_hud.lua:45 3. unknown - lua/includes/modules/hook.lua:82 [/Lua] I tried this codes: [Lua] local client = LocalPlayer() local weapon = client:GetActiveWeapon() [/Lua] Tried this one: [Lua] draw.SimpleText(weapon, "HudHintTextLarge", 1275, 980, Color(0, 255, 0, 255), 0, 0) [/Lua] Tried this: [Lua] draw.SimpleText(weapon.PrintName, "HudHintTextLarge", 1275, 980, Color(0, 255, 0, 255), 0, 0) [/Lua] Tried this: [Lua] draw.SimpleText(client:GetActiveWeapon(), "HudHintTextLarge", 1275, 980, Color(0, 255, 0, 255), 0, 0) [/Lua] Nothing is working! Please help!
Sorry, you need to Log In to post a reply to this thread.