If that works then great, but when I asked the elements they said that strings would break like that. But if you’ve tested it and it works then that’s nice!

I did make a wrapper for it but I guess that’s not needed then.

1 Like

What’s wrong with GetPedHeadBlendData?
I’m using this func for ~1 year, everything is fine.

function GetHeadBlendData()
  return Citizen.InvokeNative(0x2746BD9D88C5C5D0, PlayerPedId(), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueIntInitialized(0), Citizen.PointerValueFloatInitialized(0), Citizen.PointerValueFloatInitialized(0), Citizen.PointerValueFloatInitialized(0))
end

local data = {GetHeadBlendData()}
local dadShape = data[1]

Probably this func can be simplified

5 Likes

that’d break if the internal layout for pointer values ever were to change however

The issue with GetPedHeadBlendData is that in Lua it returns one single value instead of an array/object/table whatever your language wants to consider them. Has there ever been any update on if this can or will be fixed? Really gonna suck having to have a .js or c# file for one single function, or iterating all the frameworks ped skin tables