Functions/Events
Available functions/events
Misc
local data = {
navList = {
'head_blend', 'face_features', 'head_overlays',
'hair_styles', 'clothes', 'tattoos', 'outfits', 'shared_outfits'
},
withoutClose = false, -- With close button
editMode = false, -- For shared outfits
}
exports.nf_skin:openMenu(data, cb?)
---@param entityPed number
---@param name
--- hair | mask | hat | glasses | top | pants | shoes | other
exports.nf_skin:switchClothes(entityPed , "mask")
-- Use this function instead of the equivalent qb/qbx/ox
Appearance
---@param entityPed number
---@param appearance Appearance
exports.nf_skin:setPedAppearance(entityPed , appearance)
---@param entityPed number
---@return Appearance
exports.nf_skin:getPedAppearance(entityPed )
---@param model string | integer
---@return integer
exports.nf_skin:setPedModel(model)
-- Works only with source player
---@param entityPed integer
---@param hair Hair
exports.nf_skin:setPedHair(entityPed, hair)
---@param entityPed integer
---@param components Components
exports.nf_skin:setPedComponents(entityPed, components)
---@param entityPed integer
---@return Components
exports.nf_skin:getPedComponents(entityPed)
---@param entityPed integer
---@param k integer | string
---@param v Component
exports.nf_skin:setPedComponent(entityPed, k, v)
---@param entityPed integer
---@param component integer | string
exports.nf_skin:getPedComponent(entityPed, component)
---@param entityPed integer
---@param props Props
exports.nf_skin:setPedProps(entityPed, props)
---@param entityPed integer
---@return Props
exports.nf_skin:getPedProps(entityPed)
---@param entityPed integer
---@param k integer | string
---@param v Prop
exports.nf_skin:setPedProp(entityPed, k, v)
---@param entityPed integer
---@param prop integer | string
---@return Prop
exports.nf_skin:getPedProp(entityPed, prop)
---@param entityPed integer
---@param tattoos Tattoo[]
exports.nf_skin:setPedTattoos(entityPed, tattoos)
---@param entityPed integer
---@return Tattoo[]
exports.nf_skin:getPedTattoos(entityPed)
Last updated