_FIND_MODEL_FOR_ITEM
Returns the model hash used to represent item in the world.
Signature
Hash _FIND_MODEL_FOR_ITEM(Hash item); // 0xE47DD64B9F02677D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | item | Hash |
Facts
| Name | _FIND_MODEL_FOR_ITEM |
|---|---|
| Hash | 0xE47DD64B9F02677D |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0xE47DD64B9F02677D, -- _FIND_MODEL_FOR_ITEM
GetHashKey("name"), -- Hash item
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0xE47DD64B9F02677D", // _FIND_MODEL_FOR_ITEM
GetHashKey("name"), // Hash item
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0xE47DD64B9F02677D, // _FIND_MODEL_FOR_ITEM
(uint)API.GetHashKey("name") // Hash item
);Related TASK natives
- GET_ITEM_INTERACTION_ITEM_ID
- _FIND_NEAREST_PED_AROUND_ANIMAL
- _ADD_COVER_POINT_FOR_ENTITY
- _GET_ITEM_INTERACTION_ENTITY_FROM_PED
- _GET_WHISTLE_RANGE_MAX_FOR_BONDING_LEVEL
- _GET_WHISTLE_RANGE_MIN_FOR_BONDING_LEVEL
- _RESET_SCENARIO_FOR_ENTITY
- _SET_ITEM_INTERACTION_STATE
- _SWAP_REINS_FOR_PEDS
- _TASK_ITEM_INTERACTION_2
- _TASK_ITEM_INTERACTION_3
- CAN_START_ITEM_INTERACTION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.