Player::giveHelmet
PoliceMotorcycleHelmet 1024
RegularMotorcycleHelmet 4096
FiremanHelmet 16384
PilotHeadset 32768
PilotHelmet 65536
--
p2 is generally 4096 or 16384 in the scripts. p1 varies between 1 and 0.
Syntax
player.giveHelmet(cannotRemove, helmetFlag, textureIndex);
Required Arguments
- cannotRemove: Boolean
- helmetFlag: int
- textureIndex: int
Return value
- Undefined
Example
// todo