AI Core

ai-appearance

The character creator for new characters, clothing stores, barber shops and the portraits on the character screen.

ai-appearance gives characters their look. A new character first goes through the creator (face, parents, hair, clothes) alone in a private room. Later, players change clothes in clothing stores and their hair, beard and makeup at barber shops. It also makes the round portraits on AI Core's character screen.

It is basic on purpose: creator, clothing stores and barbers. It has no tattoos, saved outfits, wardrobe, clothing items or job outfit menu. For those, install a fuller clothing script (see below).

What it does in the game

  • Character creator. A new character appears in a private copy of the world (nobody else sees them), at the creator spot you set, and shapes their look: parents (mother and father drive face shape and skin), face features (on 2D planes like GTA's own creator, double click resets), hair and colours, beard, brows, makeup, and clothes. Saving brings them to their spawn point. A character without a saved look goes back to the creator at the next login.
  • Clothing stores. Inside a store's area, the interaction key opens the editor for clothes and accessories. The player pays per changed item.
  • Barber shops. Hair, hair colours, beard, brows, chest hair, makeup, blush and lipstick. The player pays once per visit when anything changed.
  • Free when nothing changed. Closing without a change costs nothing.
  • Portraits. The character screen shows each character's face on its card.
  • Freemode models only. The model follows the character's sex chosen at creation; the creator never changes it.
  • Every save is checked on the server: the creator only for a character without a look, a shop only inside that shop and only for the parts it sells.

Installation

The AI Core txAdmin recipe installs it. By hand: put the folder in resources/[ai]/ and add ensure ai-appearance to server.cfg after ensure ai-core. It needs ai-core and the database:

env.cfg
add_convar_permission ai-appearance read mysql_connection_string

The table ai_appearance_characters is created on the first start.

Panel settings

Open the admin panel (F10) and pick Appearance.

Clothing stores and barbers tab

Where players change clothes or get a haircut. Each store is one record; press New store to add one.

Store: stand in the middle of the store and use your position; players inside the radius can open it.

SettingWhat it changesValuesDefault for a new store
TypeClothing store or barber shop.Clothing store / Barber shopClothing store
Centre of the storeThe middle of the store. Also where the map blip sits.a point
RadiusHow far from the centre the store can be opened.1 to 30 m6
Show on the mapShows the store's blip.on / offon

NPC: a person standing at this place (a clerk). Leave the model empty for none.

SettingWhat it changesValuesDefault
ModelThe ped model; empty means no NPC. Players see it within 50 m.a ped modelempty
What it doesAn idle animation the NPC plays on the spot.a list of scenariosnone
Where it standsThe NPC's floor spot and the way it faces. Without one it stands on the store's point.a point with heading

The script ships with 16 clothing stores and 7 barber shops at the GTA locations.

Appearance settings tab

Character creator: new characters shape their look here, alone in a private copy of the world.

SettingWhat it changesValuesDefault
Where the character standsStand on the spot facing the way the character should face, then use your position.a point with heading-795.57, 331.79, 200.42, heading 270

Prices: what a visit costs. Nothing is charged when the player changes nothing.

SettingWhat it changesValuesDefault
Clothing, per changed itemPrice of each changed piece. A new top, pants and shoes is three items.0 to 1,000,000 $50
Barber, per visitCharged once when anything changes.0 to 1,000,000 $100
Paid fromMoney accounts tried in order until one has enough, for example cash then bank.up to 5 accountscash, bank

Clothing store blip and Barber shop blip: the look of the map blips.

SettingWhat it changesValuesDefault
Blip look (clothing)Picture, colour and size of clothing store blips.sprite 0-1000, colour 0-100, size 0.3-2sprite 366, colour 47, size 0.7
Blip look (barber)The same for barber shops.sprite 0-1000, colour 0-100, size 0.3-2sprite 71, colour 0, size 0.7

Commands

None.

Keybinds

None of its own. Stores open with ai-lib's interaction key (E), or with the target eye when the owner picked target interaction.

Works with other scripts

  • AI Core reads and applies looks through its appearance layer, so the character screen, sleeping bodies (ai-exitsleeping) and other scripts dress peds with whichever clothing script runs.
  • You can replace it. AI Core also works with tgiann-clothing, illenium-appearance, qb-clothing, crm-appearance, rcore_clothing and bl_appearance. Any of them makes ai-appearance unneeded: AI Core tells you in the console to remove it. See Compatibility.

Known limits

  • No tattoos, outfits, wardrobe, clothing as items, per-item prices, ped models or store ownership.
  • Job uniforms put on by other scripts (AI Core's WearOutfit) are never saved; the saved look comes back with ReloadSkin or the next login.
  • Clothing that exists only in the GTA V Enhanced edition is left out of the catalog (it shows broken on FiveM Legacy).

On this page