PickupNameToModel

From GT-MP
Jump to: navigation, search
PickupNameToModel
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Converts a String input into a PickupHash output.

Syntax

API.pickupNameToModel(string modelName);

Required Arguments

  • modelName: parameter input should be in string type.

NOTE: This function returns data in PickupHash type.

Usage example

PickupHash myPickup = API.pickupNameToModel("PICKUP_WEAPON_ADVANCEDRIFLE");

References