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

Installation

How to install script

Remove old clothing resources

  • Remove all scripts that are responsible for changing the appearance, in the case of esx there are a lot of them...

Apply SQL database

  • If you already have player_outfits or shared_outfits then make sure they are in the correct format.

SQL Tables
CREATE TABLE IF NOT EXISTS `player_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(50) DEFAULT NULL,
  `outfitname` varchar(50) NOT NULL DEFAULT '0',
  `model` varchar(50) DEFAULT NULL,
  `props` text DEFAULT NULL,
  `components` text DEFAULT NULL,
  `skin` text DEFAULT NULL,
  `outfitId` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `outfitId` (`outfitId`),
  KEY `citizenid` (`citizenid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `shared_outfits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outfitname` varchar(50) NOT NULL,
  `sex` int(11) NOT NULL DEFAULT 0,
  `skin` text NOT NULL,
  `job_gang` varchar(50) NOT NULL,
  `level` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;

CREATE TABLE IF NOT EXISTS `skin_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `owner` varchar(50) DEFAULT NULL,
  `sex` int(11) DEFAULT NULL,
  `clothes` text DEFAULT NULL,
  `models` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;

Configuration

  • Select migration format (Config.PreviousSkinchanger).

  • Configure Config.Functions if you want the ui elements not to overlap.

PreviousIntroductionNextCommits

Last updated 2 months ago