Events/Functions

All events and functions.

Params
Values
Description

navSelect

Initial route of NUI, value must exist in navList

navList

Allows to display selected tabs in NUI

boolean

Disables close button in NUI (useful for creating your first skin)

array

Table with job outfits

array

Table with job/gang outfits

boolean

Enables creating/removing job/gang outfits

Framework.Jobs[Framework.Job].grades or Framework.Gangs[Framework.Gang].grades

Just data with QBCore jobs/gangs grades

Example Usage

Displays in NUI only head_overlay (makeups etc.) , hair_styles (chest hair, hair, eyebrows), clothes (components, props)

Initial route is hair_styles

Close button forces player to save skin (doesn't have option to close skinchanger without saving skin)

exports['nf-skin']:OpenMenu({
    navSelected = 'hair_styles',
    navList = {
        'head_overlay', 'hair_styles', 'clothes'
    },
    closeButton = false
})

Example Usage of job/gang outfits

Outfits: Loads your wardrobe clothes

RoomOutfits: Loads clothes from your job by grade (from config and DB)

CreatorMode: enables option to edit job DB clothes

Grades: If creatorMode is true

exports['nf-skin']:OpenMenu({
    navSelected = 'room_outfits',
    navList = {
        'clothes', 'outfits', 'room_outfits'
    },
    outfits = lib.callback.await('nf-skin:server:getOutfits', false),
    roomOutfits = lib.callback.await('nf-skin:server:getRoomOutfits', false, false,
                self.openRoomOutfits),
    creatorMode = true,
    grades = Framework.Gangs[Framework.Gang].grades
})

Last updated