fivem.shared.util
| .. | |
|---|---|
| Bits | Bitwise operations that work on FXServer. |
| Cooldown | A rate limiter keyed on nothing but time. |
| Debounce | Collapses a burst of calls into a single delayed one. |
| Hash | A Jenkins hash, with implicit conversion from the name it was made of. |
| Json | JSON encoding and decoding that works on FXServer. |
| KeyedCooldown | Per-key rate limiting — one independent |
| LogLevel | |
| Logger | Console logging with a resource prefix, a level filter, and FiveM's
|
| LuaTables | Conversions between raw Lua tables and Haxe collections. |
| MathUtil | Small numeric helpers that the Haxe standard library doesn't ship and that
game code reaches for constantly. Everything is |
| Quaternion | A rotation quaternion, layout-compatible with what
|
| QuaternionData | |
| Rgba | An 8-bit RGBA colour. |
| RgbaData | |
| Signal | A typed, in-process event emitter — the counterpart to FiveM's stringly
typed |
| SignalUnsubscribe | Removes a listener from the |
| Stopwatch | Measures elapsed time against the game clock — for profiling a slow handler, or timing how long a player has held an interaction key. |
| Throttle | Runs an action at most once per interval, executing the first call immediately and ignoring the rest until the interval elapses. |
| Vector2 | A 2D vector, sharing |
| Vector2Data | |
| Vector3 | An immutable-by-convention 3D vector with full operator overloading. |
| Vector3Data | The structural shape every 3D vector in this library is built on. |
| Vector4 | A 4D vector. In FiveM the overwhelmingly common use is position plus
heading — spawn points, parking spots, teleport targets — which is why
|
| Vector4Data | |
| VoidSignal | A |