GetWeaponClipAmmo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{Needs_Example}}
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
Line 11: Line 12:
===Returns===
===Returns===
Returns the amount of ammo in the custom weapons clip, false otherwise.
Returns the amount of ammo in the custom weapons clip, false otherwise.
==Requirements==
{{Requirements|n/a|1.3.0-9.04555|}}


==See Also==
==See Also==
{{Client weapon creation functions}}
{{Client weapon creation functions}}

Revision as of 09:34, 18 January 2014

Accessories-text-editor.png Script Example Missing Function GetWeaponClipAmmo needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


This function gets the amount of ammo in a custom weapons magazine/clip.

Syntax

int getWeaponClipAmmo ( weapon theWeapon )

Required Arguments

  • theWeapon: The weapon to get the clip ammo of.

Returns

Returns the amount of ammo in the custom weapons clip, false otherwise.

See Also