I am having trouble with player classes. I have asked many people, but they can't seem to find out whats wrong.
Heres my test scripts:
class 'playert1':
PHP Code:
//#CLIENTSIDE
function Test()
{
this.chat = "test";
}
weapon 'Test':
PHP Code:
//#CLIENTSIDE
function onCreated()
player.join("playert1");
function onWeaponFired()
player.Test();
Now, alot of people told me not to join classes clientside, but I have tried joining the class serverside, when the player logs on, etc.
And it still didnt work. The problem is the class isnt being joined...
And idk why not, when I echo player.joinedclasses it only echoes startgui,
So, i'm not sure why the class isnt being joined. Any help?