GIVE DELAYED WEAPON TO CHAR
Jump to navigation
Jump to search
| 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.