I could of sworn you were told this before but:
Put your "guild checking" on the server-side.
PHP Code:
function onCreated() {
this.guilds = {"Graal Police","Player Relations","Graal Police Admin","Player Relations Admin","Manager","Co-Manager","Owner","Co-Owner"};
}
function onActionServerSide() {
if (params[0] == "JailPlayer") {
if (player.guild in this.guilds) {
// do your jailing stuff..
}
}
}
Can't really tell you why it's not working but why not just keep your onActionServerSide code in your weapon?