Difference between revisions of "GIVE DELAYED WEAPON TO CHAR"
Jump to navigation
Jump to search
(Created page with "{{Native |noheader = 0 |np = 4 |p1t = handle |p1d = char handle |p2t = integer |p2d = weaponid |p3t = integer |p3d...") |
(No difference)
|
Latest revision as of 21:40, 24 October 2015
Number of parameters: 4 | ||
---|---|---|
Parameter # | Type | Description |
1. | handle | char handle |
2. | integer | weaponid |
3. | integer | ammo |
4. | integer (0/1) | 0 - hidden / 1 - naked |
Return value: | ||
Type | Description | |
None |
Gives a weapon to the specified ped. It works similarly as GIVE_WEAPON_TO_CHAR.
Used in some .SCO missions.
Example
GIVE_DELAYED_WEAPON_TO_CHAR(GET_PLAYER_CHAR( CONVERT_INT_TO_PLAYERINDEX( GET_PLAYER_ID() )), 7, 500, 1);
This native gives you baretta with 500 bullets.