Skip to content
KS-Character

KS-Character

Installation

  1. Unzip the delivered archive into your resources/ folder, under the name ks-character.
  2. Import the provided install.sql file into your database.
  3. Add ensure ks-character to your server.cfg, after oxmysql and qb-core.
  4. Restart your server.

Configuration

Config.Barbershops = {
  { label = "Coiffeur de Legion Square", coords = vec4(-812.2, -184.4, 37.6, 205.0), price = 150 },
}
Config.TattooShops = {
  { label = "Tatoueur de Vinewood", coords = vec4(320.1, 180.4, 103.5, 340.0), price = 200 },
}

Add as many entries as needed to each list — every salon works independently, with its own price.

Adding an appearance preset

A player can save their current appearance under a name, recallable later from the mirror:

exports['ks-character']:SavePreset(source, 'tenue_travail')
-- enregistre l'apparence actuelle du joueur sous ce nom

The number of presets a player can save is set with Config.MaxPresets.

Common issues

The mirror doesn’t appear in certain rooms. Add the desired coordinates to Config.Mirrors — only listed positions trigger the interaction there.

Character creation restarts on every login. Check that the ks_characters table properly stores a created = true flag after the first creation, and that your multi-character script passes the correct identifier.

Something not covered here? Join our Discord.