GetWeaponDefaultClipSize

From GT-MP
Jump to: navigation, search
GetWeaponDefaultClipSize
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Returns the default clip/magazine size of the specified weapon hash.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In C#
Server-Side Function

API.getWeaponDefaultClipSize(WeaponHash weapon);

Required Arguments

  • weapon parameter input should be in WeaponHash type. See Weapons Models.


NOTE: This function returns data in int type.

In Javascript
Client-Side Function

API.getWeaponDefaultClipSize(int weapon);

Required Arguments


NOTE: This function returns data in int type.

Usage example

In C#
Server-Side Function

API.getWeaponDefaultClipSize(WeaponHash weapon);

In Javascript
Client-Side Function

API.getWeaponDefaultClipSize(int weapon);

References