Sign in to follow this  
ellfeeenity

trouble with natives

Recommended Posts

when i use this code (c#)

    NAPI.Native.SendNativeToAllPlayers(
                Hash.SET_PED_HEAD_BLEND_DATA,
                player.Handle,

                CustomPlayerData[player.Handle].Parents.Mother,
                CustomPlayerData[player.Handle].Parents.Father,
                0,

                CustomPlayerData[player.Handle].Parents.Mother,
                CustomPlayerData[player.Handle].Parents.Father,
                0,

                CustomPlayerData[player.Handle].Parents.Similarity,
                CustomPlayerData[player.Handle].Parents.SkinSimilarity,
                0,

                false
            );

server and gtav crashes and in logs this:

System.Reflection.TargetParameterCountException: Parameter count mismatch.
   at object[] System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)

how fix it?

Edited by ellfeeenity

Share this post


Link to post
Share on other sites
4 часа назад, kemperrr сказал:

why not player.SetCustomization()?

 

q9qGoxk.png

thanks, but how change HeadOverlayColor? 

And how use HeadBlend data? i use this

 HeadBlend Var;
 Var.ShapeFirst = (byte)mother;

but maybe u know other case?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.