GIVE DELAYED WEAPON TO CHAR

From GTAMods Wiki
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.