nut.attribs - Chessnut/NutScript GitHub Wiki

This library provides function to handle attribute of the character object. With this library, player can't handle the truth.

Methods

  • nut.attribs.setup(client)
  • Loads all of the attribute effects for the player.

Extensions

Player

  • client:updateAttrib(key, value)
  • Server-side function that increases a player's key attribute by value amount.
  • client:setAttrib(key, value)
  • Server-side function that overwrites a player's key attribute to value.
  • client:getAttrib(key, default)
  • Shared function that returns the key attribute or default if it is not set for the player.