Native REDM GetHashKeyNative REDM GetHashKey
-- GetHashKey LUA 0x98EFF6F1 GET_HASH_KEY
local retval --[[ Hash ]] =
	GetHashKey(
		model --[[ string ]]
	)

This native converts the passed string to a hash.

Citizen.Invoke value:

0x98EFF6F1

Parameters:

model:

Any string.

Returns:

This native converts the passed string to a hash.

Summary

This function takes any in game model name for example “A_C_Cow” and returns the hash code, in this example it returns the number -50684386, that number is what the game functions use.

Example

--- Valentine auctions
ExtraSpawns = {  
[1] = {model="A_C_Cow"}
}
 
model_hash = GetHashKey(ExtraSpawns.model) 
    


Additional natives used in this example, or natives commonly used with this native.

Common Errors or Problems

Problem: Unknown. Please let us know if you encounter any problems.

Credits and Disclaimers

The base of this data was taken from the redm/cfx fivem/rdr docs, or from the redm natives database hosted on vespura while it was active. We have been saving and making notes for two years now, and are now adding them to our site for everyone to use. We will be modifying the notes as needed, and building tutorials around the data so these pages will change as we work on it. This is a manual process, not an automated one, so updates will occur as we have time, the priority is releasing resources. Thanks for your patience.

Was the documentation useful?

0
GetHashKey - Native

Do you understand the native?

You will be redirected

Related Posts

By MK