Skip to content

five-on-it / apps/client/src/renderer/hud-format / seatedWeaponLine

Function: seatedWeaponLine() ​

seatedWeaponLine(chosen, left, pistolKey): string

Defined in: apps/client/src/renderer/hud-format.ts:169

The weapon line seated, where only the pistol selected fires: the pistol with its rounds (pistol · OUT OF AMMO without); another weapon selected, that it does not fire from a car; the fists, nothing to fire; each with the key of the pistol when one is carried (rifle · can't fire from a car (2: pistol), fists · 2: pistol to fire).

Parameters ​

chosen ​

Pick<WeaponDef, "name" | "ammo">

left ​

number

pistolKey ​

number | undefined

Returns ​

string