GetWeaponComponentModel

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

Returns the world model hash of the specified weapon component 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.getWeaponComponentModel(WeaponComponent component);

Required Arguments


NOTE: This function returns data in int type.

In Javascript
Client-Side Function

API.getWeaponComponentModel(int component);

Required Arguments


NOTE: This function returns data in int type.

Usage example

In C#
Server-Side Function

API.getWeaponComponentModel(WeaponComponent component);

In Javascript
Client-Side Function

API.getWeaponComponentModel(int component);

References