nf scripts
  • MAIN
    • How to download the script
    • How to compile UI (open-source)
    • Requirements
  • Scripts
    • nf_skin
      • Introduction
      • Installation
      • Commits
        • 1.2.2
        • 1.2.1
        • 1.2.0
      • Functions/Events
      • Types
    • nf-skin (<1.2.0)
      • Updates
        • 1.1.2a
        • 1.1.0
        • 1.0.x
          • Room Outfits Update - 1.0.5
          • Migration Update - 1.0.4
          • Init Release - 1.0.0
      • Installation
        • QBCore
        • ESX Legacy
        • Setup DB/Migration
      • Client
        • Aces
        • Events/Functions
        • Update Appearance
        • Get Appearance
      • Client Open Files
      • Server Open Files
      • Config
Powered by GitBook
On this page
  • May be used anywhere
  • SetPedAppearance
  • SetPedComponents
  • SetPedComponent
  • SetPedProps
  • SetPedProp
  • Should Used Only via UI
  • SetPedHeadBlend
  • SetPedFaceFeatures
  • SetPedFaceFeature
  • SetPedHeadOverlays
  • SetPedHeadOverlay
  • ShrinkPedHead
  1. Scripts
  2. nf-skin (<1.2.0)
  3. Client

Update Appearance

Updates ped appearance.

May be used anywhere

SetPedAppearance

Updates everything from the head_blend to the tattoos.

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData
exports['nf-skin']:SetPedAppearance(entityPed, payload, forceUpdate)

SetPedComponents

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedComponents(entityPed, {
    ['mask']      = { 0, 0 },
    ['arms']      = { 15, 0 },
    ['pants']     = { 15, 0 },
    ['bag']       = { 0, 0 },
    ['shoes']     = { 35, 0 },
})

SetPedComponent

---@param entityPed number
---@param index string
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedComponent(entityPed, 'mask', { 0, 0 })

SetPedProps

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedProps(entityPed, {
    ['hat']      = { -1, 0 },
    ['glass']    = { -1, 0 },
})

SetPedProp

---@param entityPed number
---@param index string
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedProp(entityPed, 'hat', { -1, 0 })

Should Used Only via UI

SetPedHeadBlend

Updates heredity of ped.

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedHeadBlend(entityPed, {
    firstShape = 45,
    secondShape = 2,
    thirdShape = 21,
    firstSkin = 22,
    secondSkin = 13,
    thirdSkin = 7,
    shapeMix = 1.0,
    skinMix = 1.0,
    thirdMix = 1.0
})

SetPedFaceFeatures

Updates micro morphs of ped.

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedFaceFeatures(entityPed, {
    ['eyebrow'] = { 1.0, 1.0 }
    ['chin_length_height'] = { 0.0, 0.0 }
})

SetPedFaceFeature

Updates micro morph of ped.

---@param entityPed number
---@param index string
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedFaceFeature(entityPed, 'eyebrow', { 1.0, 1.0 })

SetPedHeadOverlays

Updates overlays of ped.

---@param entityPed number
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedHeadOverlays(entityPed, {
    ['blush'] = { 2, 1.0, 4 }
    ['eyebrows'] = { 2, 0.0, 21 }
})

SetPedHeadOverlay

Updates micro morph of ped.

---@param entityPed number
---@param index string
---@param payload table
---@param forceUpdate nil | boolean?
---If forceUpdate is nil, updates SkinChanger.skinData

exports['nf-skin']:SetPedHeadOverlay(entityPed, 'eyebrows', { 2, 1.0, 21 })

ShrinkPedHead

Restrict head clipping through masks.

If current mask has restriction tag SHRINK_HEAD then changes your head_blend.

---@param entityPed number
exports['nf-skin']:ShrinkPedHead(entityPed)
PreviousEvents/FunctionsNextGet Appearance

Last updated 10 months ago