nil or 0 while you’re dead or respawning, so always check before you use it.
api.client has a shared core that works in every game, plus a few per-game extras. See Game support for how to write scripts that run anywhere.
Shared
Identity, character, health, position, team. Works in every game.
Bloxstrike
Weapon, ammo, money, armor, flash, scope, defuse, hostages, spectators.
Rivals
Equipped item, duel state, velocity, level, ELO.
Apocalypse Rising 2
Firearm, hydration, energy, vehicle, inventory.
Types
ArmorState, AmmoState, LoadoutEntry, EquippedItem, Item.