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
  1. Scripts
  2. nf-skin (<1.2.0)
  3. Client

Events/Functions

All events and functions.

Params
Values
Description

navSelect

Single Value of

Initial route of NUI, value must exist in navList

navList

Allows to display selected tabs in NUI

closeButton

boolean

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

outfits

array

Table with job outfits

roomOutfits

array

Table with job/gang outfits

creatorMode

boolean

Enables creating/removing job/gang outfits

grades

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
})

When you use ActionType “zone”, text is displayed, you can change the script to a different one.

RegisterNetEvent('nf-skin:textUI', function(text)
    if text == false then
        lib.hideTextUI()
    else
        lib.showTextUI(text)
    end
end)

PreviousAcesNextUpdate Appearance

Last updated 10 months ago