GIVE PED HELMET WITH OPTS

From GTAMods Wiki
Jump to navigation Jump to search
GIVE_PED_HELMET_WITH_OPTS
Number of parameters: 1
Parameter #TypeDescription
1.handleped handle
2.integeroption (0/1)
Return value:
TypeDescription
None

Gives a helmet to the specified ped with parameter (P2). If P2 = 0 - ped will drop the helmet after 4-5 seconds. Just like Nico gets out from bike, taking off and drop his helmet. But if P2 = 1, ped will never takes off his helmet.


Examples

To give the helmet:
GIVE_PED_HELMET_WITH_OPTS(my_ped_1, 1);
Force to take off (created) helmet:
GIVE_PED_HELMET_WITH_OPTS(my_ped_1, 0);