View Single Post
  #1  
Old 03-25-2011, 02:26 AM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
GUI script works in v6 but not v5?

I made a GUI script that sets the players gani if they click a button, and to my suprise the buttons work in v6 but not v5. Can anyone explain why/ how to fix it? here is the code:




NPC Code:

// Scripted by skill
//#CLIENTSIDE
function onWeaponFired() {
gestureswindow.show();
new GuiWindowCtrl("gestureswindow")
{
profile = GuiBlueWindowProfile;
extent = {310,500};
position = {5, 5};
text = "Gestures";

new GuiButtonCtrl("gesturegrab")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {105,25};
text = "grab";
}
new GuiButtonCtrl("gesturewalk")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {5,25};
text = "walk";
}
new GuiButtonCtrl("gesturesit")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {205,25};
text = "sit";
}
}
}
function gesturegrab.onAction()
{
player.ani = "grab";
}
function gesturewalk.onAction()
{
player.ani= "walk";
}
function gesturesit.onAction()
{
player.ani= "sit";
}

Reply With Quote