WeaponNameToModel

From GTA Network Wiki
Jump to: navigation, search

WeaponNameToModel
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Converts weapon model name to weapon hash. This function is not case sensitive.

Syntax

WeaponHash NAPI.Util.WeaponNameToModel(string modelName);

Required Arguments

  • modelName: parameter input should be in string type.

NOTE: This function returns data in WeaponHash type.

Usage example(s)

Example Description

WeaponHash weapon = NAPI.Util.WeaponNameToModel("Pistol50");

Changelog

Version Description
1.0 Release.

References