Weapon::getWeaponClipSize

From RAGE Multiplayer Wiki
Revision as of 20:14, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

// Returns the size of the default weapon component clip.

Use it like this:

char cClipSize[32];
Hash cur;
if (WEAPON::GET_CURRENT_PED_WEAPON(playerPed, &cur, 1))
{
if (WEAPON::IS_WEAPON_VALID(cur))
{
int iClipSize = WEAPON::GET_WEAPON_CLIP_SIZE(cur);
sprintf_s(cClipSize, 'ClipSize: %.d', iClipSize);
vDrawString(cClipSize, 0.5f, 0.5f);
}
}

Syntax

weapon.getWeaponClipSize(weaponHash);

Required Arguments

  • weaponHash: Model hash or name

Return value

  • int

Example

todo

See also

Template:Weapon function c