interval ms by rate per minute and saves them in ug_needs every 5 minutes, on unload and on stop.
config/needs.lua
pauseWhileDown: needs stop changing while the player is downed or dead.resetOnRespawn: needs go back tostarton respawn.
Server
Get / GetAll
nil when no character is loaded, or the need does not exist.
Set / Add / Remove
amount goes from 0 to 100. Values are clamped to 0 to 100. Unknown needs return not_found, an unloaded player not_loaded, bad numbers invalid_args.
UgCore.Enums.Events.Needs.Changed with (source, name, value, previous) on the server.
Reset
start.
Client
UgCore.Enums.Events.Needs.Changed with (name, value, previous). value is nil once the character unloads.
Console
ug needs <id> prints the values of a player.