• cl_equip Help!
    4 replies, posted
I have a ttt server and i added m9k, weapons work fine but if i hold a custom weapon (M9K) and open Equipment menu as traitor/detective its just blank and i get: [CODE] [ERROR] gamemodes/terrortown/gamemode/cl_equip.lua:199: attempt to call method 'IsEquipment' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:199 2. unknown - lua/includes/modules/concommand.lua:69 [/CODE] If i understand i should use: [CODE] function SWEP:IsEquipment() return WEPS.IsEquipment(self) end [/CODE] But ive got no idea where to put the code
It seems to be calling the method on line 199, just change it to match accordingly?
Thanks for answering djjkxbox360, but... After i tried putting this into my cl_equip and concommand i get: [CODE][ERROR] gamemodes/terrortown/gamemode/cl_equip.lua:204: attempt to index global 'SWEP' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/cl_equip.lua:204 2. unknown - lua/includes/modules/concommand.lua:69 [/CODE] Please help! EDIT: And i cant get "un-blank" menu even without custom weapons EDIT2: Bodies disapear aswell
What is on line 204?
Thats where i put in: [CODE]function SWEP:IsEquipment() return WEPS.IsEquipment(self) end[/CODE]
Sorry, you need to Log In to post a reply to this thread.