natives.getHashKey

From GTA Connected
Revision as of 00:16, 4 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getHashKey |parameters = string name |parameter1 = string name The model or resource name to convert into a hash key ("M_Y_COP") |usage = Returns the hash key of a given string, typically used for models, animations, or other resources. |notes = - Commonly used before natives.requestModel to obtain the model hash - Works with ped names, vehicle names, and other resource identifiers |return1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

natives.getHashKey

Signature: int The hash key corresponding to the given string natives.getHashKey(string name)

Usage: Returns the hash key of a given string, typically used for models, animations, or other resources.

Parameters

string name The model or resource name to convert into a hash key ("M_Y_COP")

Return

int The hash key corresponding to the given string

On failure: int 0 if the string is invalid