GIVE PED HELMET WITH OPTS
Jump to navigation
Jump to search
Number of parameters: 1 | ||
---|---|---|
Parameter # | Type | Description |
1. | handle | ped handle |
2. | integer | option (0/1) |
Return value: | ||
Type | Description | |
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);