
Originally Posted by
iMask
There's 2 readonly variables in Graal which can be useful to you: screenwidth and screenheight. You can use these 2 in a GuiControl
PHP Code:
// A GuiControl that is in the center of the screen, regardless of the size/resolution of the screen
new GuiControl("blah") {
width = 500;
height = 400;
x = (screenwidth / 2) - (width / 2)
y = (screenheight / 2) - (height /2)
}
Thanks! I have trouble understanding Player Attributes or Attractions.
For Example:
PHP Code:
//#CLIENTSIDE
function onWeaponFired(){
player.attr[1]="something.gani";
}
This places the gani on top of the player, so what exactly is player.attr?
Thanks for help =)