GIVE DELAYED WEAPON TO CHAR

From GTAMods Wiki
Revision as of 21:40, 24 October 2015 by FL1K3R (talk | contribs) (Created page with "{{Native |noheader = 0 |np = 4 |p1t = handle |p1d = char handle |p2t = integer |p2d = weaponid |p3t = integer |p3d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GIVE_DELAYED_WEAPON_TO_CHAR
Number of parameters: 4
Parameter #TypeDescription
1.handlechar handle
2.integerweaponid
3.integerammo
4.integer (0/1)0 - hidden / 1 - naked
Return value:
TypeDescription
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.