• Weird surface error
    0 replies, posted
[CODE] [ERROR] addons/simple/lua/darkrp_modules/aplex_hud/cl_aplex_hud.lua:83: attempt to index global 'surface' (a nil value) 1. unknown - addons/simple/lua/darkrp_modules/aplex_hud/cl_aplex_hud.lua:83 2. include - [C]:-1 3. unknown - addons/simple/lua/autorun/aplexhudrun.lua:2 [/CODE] I don't know why surface is being recognized as a nil value, heres the lines its asking for. [CODE] // addons/simple/lua/darkrp_modules/aplex_hud/cl_aplex_hud.lua:83 local VoiceChatTexture = surface.GetTextureID("voice/icntlk_pl") // addons/simple/lua/autorun/aplexhudrun.lua:2 -- I put the whole file because its small. if SERVER then include( "darkrp_modules/aplex_hud/cl_aplex_hud.lua" ) elseif CLIENT then AddCSLuaFile( "darkrp_modules/aplex_hud/cl_aplex_hud.lua" ) end [/CODE]
Sorry, you need to Log In to post a reply to this thread.