Player::setCustomization
Jump to navigation
Jump to search
This method set player customization.
Contents
Parameters
- gender: Boolean
- shapeFirst: Number
- shapeSecond: Number
- shapeThird: Number
- skinFirst: Number
- skinSecond: Number
- skinThird: Number
- shapeMix: Number
- skinMix: Number
- thirdMix: Number
- eyeColor: Number
- hairColor: Number
- hightlightColor: Number
- faceFeatures: Float[]. IMPORTANT: The array must contain 20 elements
Syntax
Server-Side
player.setCustomization(Boolean gender, Number shapeFirst, Number shapeSecond, Number shapeThird, Number skinFirst, Number skinSecond, Number skinThird, Number shapeMix, Number skinMix, Number thirdMix, Number eyeColor, Number hairColor, Number hightlightColor, Number[] faceFeatures)
Example
Server-Side
var bGender = true;
if(player.model != 1885233650) {
bGender = false;
}
var MotherBlend = 21, FatherBlend = 41, fBlendShape = 0.5, fBlendSkin = 0.5, HairHighlight = 0, HairColour = 0;
var NoseWidth = 0, NoseHeight = 0, NoseLength = 0, NoseBridge = 0, NoseTip = 0, NoseBridgeShift = 0;
var BrowHeight = 0, BrowWidth = 0, CBoneHeight = 0, CBoneWidth = 0, CheekWidth = 0, Eyes = 0, Lips = 0;
var JawWidth = 0, jawHeight = 0, ChinLength = 0, ChinPos = 0, ChinWidth = 0, ChinShape = 0, NeckWidth = 0;
player.setCustomization(bGender, MotherBlend, FatherBlend, 0, MotherBlend, FatherBlend, 0, fBlendShape, fBlendSkin, 0, 1, HairColour, HairHighlight,
[
NoseWidth, NoseHeight, NoseLength, NoseBridge, NoseTip, NoseBridgeShift,
BrowHeight, BrowWidth, CBoneHeight, CBoneWidth, CheekWidth, Eyes, Lips,
JawWidth, jawHeight, ChinLength, ChinPos, ChinWidth, ChinShape, NeckWidth
]
);
See Also
- Functions
- Player::ban
- Player::call
- Player::callUnreliable
- Player::clearDecorations
- Player::getClothes
- Player::getDecoration
- Player::getFaceFeature
- Player::getHeadBlend
- Player::getHeadOverlay
- Player::getProp
- Player::getWeaponAmmo
- Player::giveWeapon
- Player::invoke
- Player::isStreamed
- Player::isStreamedFor
- Player::kick
- Player::notify
- Player::outputChatBox
- Player::playAnimation
- Player::playScenario
- Player::putIntoVehicle
- Player::removeFromVehicle
- Player::removeObject
- Player::removeWeapon
- Player::removeAllWeapons
- Player::resetWeapon
- Player::setClothes
- Player::setCustomization
- Player::setDecoration
- Player::setFaceFeature
- Player::setHairColor
- Player::setHeadBlend
- Player::setHeadOverlay
- Player::setProp
- Player::setWeaponAmmo
- Player::spawn
- Player::stopAnimation
- Player::updateHeadBlend
- Player::enableVoiceTo
- Player::disableVoiceTo
- Weapons::clear
- Entity::destroy
- Entity::dist
- Entity::distSquared
- Entity::getVariable
- Entity::setVariable
- Properties
- Player::action
- Player::aimTarget
- Player::allWeapons
- Player::armour
- Player::eyeColor
- Player::faceFeatures
- Player::hairColor
- Player::hairHighlightColor
- Player::heading
- Player::health
- Player::ip
- Player::serial
- Player::isAiming
- Player::isClimbing
- Player::isEnteringVehicle
- Player::isInCover
- Player::isInMelee
- Player::isJumping
- Player::isLeavingVehicle
- Player::isOnLadder
- Player::isReloading
- Player::name
- Player::packetLoss
- Player::ping
- Player::seat
- Player::socialClub
- Player::streamedPlayers
- Player::vehicle
- Player::voiceListeners
- Player::weapon
- Player::weaponAmmo
- Player::weapons
- Entity::alpha
- Entity::data
- Entity::dimension
- Entity::id
- Entity::model
- Entity::position
- Entity::type