Server

Guide to use the script more advanced

Server Events

AddMoney

Use this event when the player receives cash

Attribute:

  • playerid:

    • integer: server id of the player

  • monetype:

    • string: type of the money

  • amount:

    • integer: amount of money

  • currentbalance:

    • integer: the player's current balance of money

  • reason:

    • string: any reason can be added for the transfer


RemoveMoney

Use this event when the player loses cash

Attribute:

  • playerid:

    • integer: server id of the player

  • monetype:

    • string: type of the money

  • amount:

    • integer: amount of money

  • currentbalance:

    • integer: the player's current balance of money

  • reason:

    • string: any reason can be added for the transfer


SetMoney

Use this event when the player's cash is reset to certain value

Attribute:

  • playerid:

    • integer: server id of the player

  • monetype:

    • string: type of the money

  • amount:

    • integer: amount of money

  • reason:

    • string: any reason can be added for the transfer


AddItem

Use this event when an item is added to the player

Attribute:

  • playerid:

    • integer: server id of the player

  • item:

    • string: name of the item

  • amount:

    • integer: amount of item


RemoveItem

Use this event when an item is removed from the player

Attribute:

  • playerid:

    • integer: server id of the player

  • item:

    • string: name of the item

  • amount:

    • integer: amount of item


ClearInventory

Use this event when clearing the player's inventory

Attribute:

  • playerid:

    • integer: server id of the player


Last updated

Was this helpful?