Hi, I'm making a class to draw basic shapes but it won't draw!
CLASS: player-drawing
NPC Code:
//#CLIENTSIDE
public function showRect(id, x, y, width, height) {
showpoly(id, {x, y, x+width, y, x+width, y+height, x, y+height});
player.chat = "Nice rectangle!";
}
I call it by joining the class to the player and calling:
WEAPON: Gui
NPC Code:
player.showRect(201, 0,0,200,200);
Am I doing something wrong, or is it not posible to do this with a class?
Thanks!