Skip to main content
Client Runs in your resource. ug-lib reads the local player every settings.cacheInterval ms (default 100) and sends changes to every resource. Reading a value is a table lookup: never start your own polling loop for these.
  • Get takes a UgLib.Enums.CacheKey.
  • On calls handler(value, oldValue) when the key changes. It raises for Coords and Heading, which change every frame. A failing handler is logged and others still run.

Example

client.lua