I used a triggerserver script:
(shortened version)
PHP Code:
function onActionServerside(){
if(params[0] == "replaceidle"){
replaceani("idle",params[1]);
}
}
//#CLIENTSIDE
function onPlayerChats(){
if(player.chat.starts("replaceidle")){
triggerserver("gui",this.name,"replaceidle",player.chat.substring(12));
}
}
The replaceani doesnt work, I think it has something to do with the params.. So how would I go about getting it to work? It is to set the ani idle to the parameters identified in the playerchats function. Someone please explain what I'm doing wrong? Yes I know it can be shortened farther, but I have lots of others serverside actions along with that so I just decided to have it in the serverside aswell.