{"hash":"0x120376C23F019C6C","ns":"ENTITY","name":"_GET_ENTITY_ALBEDO","slug":"_GET_ENTITY_ALBEDO","official":false,"named":true,"luaName":"GetEntityAlbedo","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"entity","type":"Entity"},{"name":"albedoHash","type":"Hash*"}],"summary":"Gets the albedo/material variant hash currently associated with the specified entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Gets the albedo/material variant hash currently associated with the specified entity.\nWrites the current albedo hash to albedoHash and returns whether the entity already has a valid albedo/material entry assigned.\nIf this returns false, scripts can fall back to resolving texture dictionaries/material data and applying a replacement."},{"source":"vorp","format":"text","body":"returns the albedo hash by carriable hash, use Citizen.pointerValueInt() as last parameter \nthis native writes an albedo-related hash to the output pointer and returns whether the entity already has a valid albedo/material entry assigned if not it loads it and applies it using 0xDD03FC2089AD093C"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_ALBEDO","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_ALBEDO.md","snippets":{"lua":"local retval, albedoHash = GetEntityAlbedo(entity, albedoHash)","luaInvoke":"local retval, albedoHash = Citizen.InvokeNative(0x120376C23F019C6C, entity, Citizen.PointerValueIntInitialized(albedoHash), Citizen.ReturnResultAnyway())","js":"const [retval, albedoHash] = GetEntityAlbedo(entity, albedoHash);","jsInvoke":"const [retval, albedoHash] = Citizen.invokeNative('0x120376C23F019C6C', entity, Citizen.pointerValueIntInitialized(albedoHash), Citizen.returnResultAnyway());","csharp":"var albedoHash = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0x120376C23F019C6C, entity, albedoHash);\n// albedoHash.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}