Difference between revisions of "GIVE PED HELMET WITH OPTS"
Jump to navigation
Jump to search
(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...") |
(No difference)
|
Latest revision as of 22:03, 24 October 2015
| 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);