_GET_SHOP_ITEM_BASE_LAYERS
Hash
0x63342C50EC115CE8Runtime name
GetShopItemBaseLayersNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
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);Parameters
| Name | Type | Description |
|---|---|---|
shopItem | Hash | — |
p1 | Any | — |
ped | Ped | — |
metapedType | int | — |
p4 | BOOL | — |
drawable | Hash* | — |
albedo | Hash* | — |
normal | Hash* | — |
material | Hash* | — |
p9 | Hash* | — |
p10 | Hash* | — |
p11 | Hash* | — |
p12 | Hash* | — |
Returns BOOL
Usage
local retval, drawable, albedo, normal, material, p9, p10, p11, p12 = GetShopItemBaseLayers(shopItem, p1, ped, metapedType, p4)
-- always works, by hash
local retval, drawable, albedo, normal, material, p9, p10, p11, p12 = Citizen.InvokeNative(0x63342C50EC115CE8, shopItem, p1, ped, metapedType, p4, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, drawable, albedo, normal, material, p9, p10, p11, p12] = GetShopItemBaseLayers(shopItem, p1, ped, metapedType, p4);
// by hash
const [retval, drawable, albedo, normal, material, p9, p10, p11, p12] = Citizen.invokeNative('0x63342C50EC115CE8', shopItem, p1, ped, metapedType, p4, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());var drawable = new OutputArgument();
var albedo = new OutputArgument();
var normal = new OutputArgument();
var material = new OutputArgument();
var p9 = new OutputArgument();
var p10 = new OutputArgument();
var p11 = new OutputArgument();
var p12 = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x63342C50EC115CE8, shopItem, p1, ped, metapedType, p4, drawable, albedo, normal, material, p9, p10, p11, p12);
// drawable.GetResult<int>()
// albedo.GetResult<int>()
// normal.GetResult<int>()
// material.GetResult<int>()
// p9.GetResult<int>()
// p10.GetResult<int>()
// p11.GetResult<int>()
// p12.GetResult<int>()- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Enums and flags
- eMetaPedType 4 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.