GET_META_PED_ASSET_GUIDS
Writes the drawable, albedo, normal and material hashes of the component at index on ped, returning true on success.
Signature
BOOL GET_META_PED_ASSET_GUIDS(Ped ped, int index, Hash* drawable, Hash* albedo, Hash* normal, Hash* material); // 0xA9C28516A6DC9D56 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | index | int |
| 3 | drawable | Hash* (out pointer) |
| 4 | albedo | Hash* (out pointer) |
| 5 | normal | Hash* (out pointer) |
| 6 | material | Hash* (out pointer) |
Facts
| Name | GET_META_PED_ASSET_GUIDS |
|---|---|
| Hash | 0xA9C28516A6DC9D56 |
| 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 = Citizen.InvokeNative(0xA9C28516A6DC9D56, -- GET_META_PED_ASSET_GUIDS
PlayerPedId(), -- Ped ped
0, -- int index
Citizen.PointerValueInt(), -- Hash* drawable
Citizen.PointerValueInt(), -- Hash* albedo
Citizen.PointerValueInt(), -- Hash* normal
Citizen.PointerValueInt(), -- Hash* material
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, drawable, albedo, normal, material] = Citizen.invokeNative("0xA9C28516A6DC9D56", // GET_META_PED_ASSET_GUIDS
PlayerPedId(), // Ped ped
0, // int index
Citizen.pointerValueInt(), // Hash* drawable
Citizen.pointerValueInt(), // Hash* albedo
Citizen.pointerValueInt(), // Hash* normal
Citizen.pointerValueInt(), // Hash* material
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var drawableArg = new OutputArgument();
var albedoArg = new OutputArgument();
var normalArg = new OutputArgument();
var materialArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA9C28516A6DC9D56, // GET_META_PED_ASSET_GUIDS
API.PlayerPedId(), // Ped ped
0, // int index
drawableArg, // Hash* drawable
albedoArg, // Hash* albedo
normalArg, // Hash* normal
materialArg // Hash* material
);
int drawable = drawableArg.GetResult<int>();
int albedo = albedoArg.GetResult<int>();
int normal = normalArg.GetResult<int>();
int material = materialArg.GetResult<int>();Related PED natives
- GET_META_PED_ASSET_TINT
- GET_NUM_META_PED_OUTFITS
- _APPLY_PED_META_PED_OUTFIT
- _CREATE_META_PED_ASSET
- _CREATE_META_PED_OUTFIT_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_META_PED_RACE
- _GET_META_PED_TYPE
- _GET_PED_META_OUTFIT_HASH
- _GET_PED_WHO_HOGITIED_THIS_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.