How to use the SetPedHeadBlData function?

Hello,

I am currently working on a player editor script in lua and I am able to use many functions like SetPedComponentVariation, SetPedPropIndex …
But I am not able to use the SetPedHeadBlData function. Here is how I call it in my script:
SetPedHeadBlData(GetPlayerPed(-1), 0, 0, 0, 0, 0, 0, 1.0, 1.0, 0.0, true)

I think that I respect the method signature which is :
SetPedHeadBlData(Ped ped, int shapeFirstID, int shapeSecondID,
int shapeThirdID, int skinFirstID, int skinSecondID,
int skinThirdID, float shapeMix, float skinMix, float thirdMix,
BOOL isParent)

Any Idea why it fails ?

Thanks for your help

Ok, I figgured out that the problem is on the float parameters. The lua numbers with a dot (like 1.0 or 4.2) are considered of ‘double’ type by the GTAV native. And I don’t know how to ‘convert’ them as a float value in lua …