getWeapon() | LoadoutEntry? | What you’re currently holding. nil if empty-handed. |
getWeaponName() | string? | Name of your current weapon, e.g. "AK-47". |
getWeaponProperties() | any? | Detailed weapon stats (damage, fire rate, range, etc.). |
getInventory() | { LoadoutEntry } | Everything in your inventory. |
getMoney() | number | Your current money. 0 if unknown. |
getAmmo() | AmmoState? | Ammo for what you’re holding: { rounds, reserve }. nil when empty-handed or the item has no ammo. See AmmoState. |
isBlind() / isFlashed() | boolean | true while a flashbang is whiting out your screen. |
getFlashVisibility() | number | How much you can see while flashed. 0 = fully white, 1 = no flash. |
isScoped() | boolean | true while zoomed in with a scoped weapon. |
isDefusing() | boolean | true while you’re actively defusing the bomb. |
isClimbing() | boolean | true while climbing a ladder. |
hasC4() | boolean | true if you’re carrying the bomb. |
isRescuingHostage() | boolean | true while channeling a hostage rescue. |
isCarryingHostage() | boolean | true while carrying a rescued hostage. |
getArmor() | ArmorState | Armor type and durability. See ArmorState. |
hasArmor() | boolean | true if you have kevlar. |
hasHelmet() | boolean | true if you have a helmet (implies kevlar). |
getSpectatorCount() | number | How many players are spectating you. |
isBeingSpectated() | boolean | true if at least one player is spectating you. |