_GET_SHOP_ITEM_BASE_LAYERS
Writes the drawable, albedo, normal and material hashes of the shop item shopItem for the given ped and meta ped type into the output pointers.
Signature
BOOL _GET_SHOP_ITEM_BASE_LAYERS(Hash shopItem, Any p1, Ped ped, int metapedType, BOOL p4, Hash* drawable, Hash* albedo, Hash* normal, Hash* material, Hash* p9, Hash* p10, Hash* p11, Hash* p12); // 0x63342C50EC115CE8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | shopItem | Hash |
| 2 | p1 | Any |
| 3 | ped | Ped |
| 4 | metapedType | int |
| 5 | p4 | BOOL |
| 6 | drawable | Hash* (out pointer) |
| 7 | albedo | Hash* (out pointer) |
| 8 | normal | Hash* (out pointer) |
| 9 | material | Hash* (out pointer) |
| 10 | p9 | Hash* (out pointer) |
| 11 | p10 | Hash* (out pointer) |
| 12 | p11 | Hash* (out pointer) |
| 13 | p12 | Hash* (out pointer) |
Facts
| Name | _GET_SHOP_ITEM_BASE_LAYERS |
|---|---|
| Hash | 0x63342C50EC115CE8 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, drawable, albedo, normal, material, p9, p10, p11, p12 = Citizen.InvokeNative(0x63342C50EC115CE8, -- _GET_SHOP_ITEM_BASE_LAYERS
GetHashKey("name"), -- Hash shopItem
0, -- Any p1
PlayerPedId(), -- Ped ped
0, -- int metapedType
false, -- BOOL p4
Citizen.PointerValueInt(), -- Hash* drawable
Citizen.PointerValueInt(), -- Hash* albedo
Citizen.PointerValueInt(), -- Hash* normal
Citizen.PointerValueInt(), -- Hash* material
Citizen.PointerValueInt(), -- Hash* p9
Citizen.PointerValueInt(), -- Hash* p10
Citizen.PointerValueInt(), -- Hash* p11
Citizen.PointerValueInt(), -- Hash* p12
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, drawable, albedo, normal, material, p9, p10, p11, p12] = Citizen.invokeNative("0x63342C50EC115CE8", // _GET_SHOP_ITEM_BASE_LAYERS
GetHashKey("name"), // Hash shopItem
0, // Any p1
PlayerPedId(), // Ped ped
0, // int metapedType
false, // BOOL p4
Citizen.pointerValueInt(), // Hash* drawable
Citizen.pointerValueInt(), // Hash* albedo
Citizen.pointerValueInt(), // Hash* normal
Citizen.pointerValueInt(), // Hash* material
Citizen.pointerValueInt(), // Hash* p9
Citizen.pointerValueInt(), // Hash* p10
Citizen.pointerValueInt(), // Hash* p11
Citizen.pointerValueInt(), // Hash* p12
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var drawableArg = new OutputArgument();
var albedoArg = new OutputArgument();
var normalArg = new OutputArgument();
var materialArg = new OutputArgument();
var p9Arg = new OutputArgument();
var p10Arg = new OutputArgument();
var p11Arg = new OutputArgument();
var p12Arg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x63342C50EC115CE8, // _GET_SHOP_ITEM_BASE_LAYERS
(uint)API.GetHashKey("name"), // Hash shopItem
0, // Any p1
API.PlayerPedId(), // Ped ped
0, // int metapedType
false, // BOOL p4
drawableArg, // Hash* drawable
albedoArg, // Hash* albedo
normalArg, // Hash* normal
materialArg, // Hash* material
p9Arg, // Hash* p9
p10Arg, // Hash* p10
p11Arg, // Hash* p11
p12Arg // Hash* p12
);
int drawable = drawableArg.GetResult<int>();
int albedo = albedoArg.GetResult<int>();
int normal = normalArg.GetResult<int>();
int material = materialArg.GetResult<int>();
int p9 = p9Arg.GetResult<int>();
int p10 = p10Arg.GetResult<int>();
int p11 = p11Arg.GetResult<int>();
int p12 = p12Arg.GetResult<int>();Related PED natives
- _GET_SHOP_ITEM_COMPONENT_AT_INDEX
- _GET_SHOP_ITEM_COMPONENT_CATEGORY
- _GET_SHOP_ITEM_HAT_COMPONENT
- _GET_SHOP_ITEM_NUM_WEARABLE_STATES
- _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
- _APPLY_SHOP_ITEM_TO_PED
- _REMOVE_SHOP_ITEM_FROM_PED
- _UPDATE_SHOP_ITEM_WEARABLE_STATE
- REMOVE_SHOP_ITEM_FROM_PED_BY_CATEGORY
- _GET_STAMINA_DEPLETION_MULTIPLIER
- _GET_STAMINA_RECHARGE_MULTIPLIER
- _GET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.