04B8

From GTAMods Wiki
Revision as of 03:27, 15 December 2007 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

04B8=5,%1d% %2h% %3d% %4d% %5d%
Description: Stores the weapons data from an actorn
Parameter 1: Actor handle
Parameter 2: Weapon group
Parameter 3: A variable to store the weapon number
Parameter 4: A variable to store the weapon ammo
Parameter 5: A variable to store the weapon model
Supports: GTA3, Vice City, San Andreas

This stores the weapon number, ammo, and model of the weapon in the weapon group of an actor. If there is no weapon for that weapon group, the weapon number returns 0 and the model returns -1.

Keywords

store, get, weapon, number, model