GIVE PED HELMET WITH OPTS

From GTAMods Wiki
Revision as of 22:03, 24 October 2015 by FL1K3R (talk | contribs) (Created page with "{{Native |noheader = 0 |np = 1 |p1t = handle |p1d = ped handle |p2t = integer |p2d = option (0/1) |r = 0 }} Gives a helmet to the specified p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);