Well I'm obviously "new" to facepunch and its community, but I've been working on a playerclass and I've defined function PLAYER:SetClassID(id) in my base class. I'm still recieving "attempt to call method 'SetClassID' (a nil value)" when I try to change to any class that's not the BASE class. This is the error that I'm still getting
[CODE][ERROR] lua/includes/modules/player_manager.lua:334: attempt to call method 'SetClassID' (a nil value)
1. SetPlayerClass - lua/includes/modules/player_manager.lua:334
2. DoClick - gamemodes/bladedash/gamemode/cl_init.lua:23
3. unknown - lua/vgui/dlabel.lua:206
[/CODE]
Thanks for taking your time to read this.
Common anyone?
Solved
You are attempting to set players class from CLIENTside, where as you are SUPPOSED to set it from SERVERside. So, you should add a console command on the server that will set the player class and run it from client.
Sorry, you need to Log In to post a reply to this thread.