SetPlayerHeadBlendData

From GT-MP
Jump to: navigation, search
SetPlayerHeadBlendData
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


Models the head of a player with given attributes.

Dialog-warning.png

Note: This function only works with the pedmodels FreemodeFemale01 and FreemodeMale01!

Syntax

API.setPlayerHeadBlendData(LocalHandle player, int shapeFirstId, int shapeSecondId, int shapeThirdId, int skinFirstId, int skinSecondId, int skinThirdId, float shapeMix, float skinMix, float thirdMix, bool isParent);

Required Arguments

  • player: parameter input should be in LocalHandle type.
  • shapeFirstId: parameter input should be in int type.
  • shapeSecondId: parameter input should be in int type.
  • shapeThirdId: parameter input should be in int type.
  • skinFirstId: parameter input should be in int type.
  • skinSecondId: parameter input should be in int type.
  • skinThirdId: parameter input should be in int type.
  • shapeMix: parameter input should be in float type. Valid values ranging from 0.0 (first shape) to 1.0 (second shape)
  • skinMix: parameter input should be in float type. Valid values ranging from 0.0 (first skin) to 1.0 (second skin)
  • thirdMix: parameter input should be in float type. Valid values ranging from 0.0 to 1.0
  • isParent: parameter input should be in bool type.

See Faces for more information.

Example

API.setPlayerHeadBlendData(player, 21, 0, 0, 4, 0, 0, 1.0f, 0.0f, 0.0f, true);

Result

Face-example.jpg

References