> For the complete documentation index, see [llms.txt](https://uniqers-scripts-docs.gitbook.io/uniqers-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://uniqers-scripts-docs.gitbook.io/uniqers-scripts-docs/uniqers-shellcreator.md). Agents can also search and read this documentation through its [MCP server](https://uniqers-scripts-docs.gitbook.io/uniqers-scripts-docs/~gitbook/mcp).

# uniqers-shellcreator

How to install and all exports infos.

<figure><img src="https://1436200110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZO8XqahJMWr9lDZTL9c1%2Fuploads%2F2Z5eqhg3J8QAu1Vz5cwW%2FUniqers_Shell_Creator_software_t%E2%80%A6_633280c8_2K%20(3).jpg?alt=media&amp;token=ce69567f-89e8-42ab-bbe9-97aeaecd61bc" alt=""><figcaption></figcaption></figure>

## Installation

### Requirements

* FiveM server with **OneSync** enabled
* `oxmysql` (database tables are created automatically)
* Game build b3889 was used for development and testing
* Optional: `screenshot-basic` (automatic listing photos), `uniqers-greenscreen` (add-on props)

### What is in the package

| Folder                 | Purpose                                                                                            | `server.cfg` line             |
| ---------------------- | -------------------------------------------------------------------------------------------------- | ----------------------------- |
| `uniqers-shellcreator` | The script: editor, runtime, library, server logic                                                 | `ensure uniqers-shellcreator` |
| `uqsc_baked`           | Companion that stores baked shells and MLO files (a resource may only write inside its own folder) | none (started by the script)  |
| `uqsc_baked_map`       | Tiny companion with no files that reads MLOs into the map safely                                   | none (started by the script)  |

Put all three folders **side by side** in `resources/`. Keep `uqsc_baked` and `uqsc_baked_map` out of Asset Escrow: their files change whenever you bake or place an MLO.

### Steps

1. Copy the three folders into `resources/`.
2. Add to `server.cfg`, after `oxmysql` and before `uniqers-house` / `uniqers-garage` (or whichever housing script you use):

   ```cfg
   ensure oxmysql
   ensure uniqers-shellcreator
   ```
3. Give your admins permission and let the script refresh the resource list (needed so new bake / MLO files reach players):

   ```cfg
   add_ace group.admin uniqers.shellcreator allow
   add_ace resource.uniqers-shellcreator command.refresh allow
   ```

   Framework admin groups are accepted automatically (`Config.Permission.groups`). More ways to grant access:

   * `Config.Permission.identifiers = { 'ABC12345', 'license:...' }` for named people
   * `Config.Permission.jobs = { architect = 0, realestate = 2 }` for jobs (lowest grade); `onDuty = true` asks for on-duty on QBox / QBCore
4. Restart the server. The tables `uniqers_shells`, `uniqers_shell_versions`, `uniqers_shell_drafts`, `uniqers_shell_photos`, `uniqers_shell_renos`, `uniqers_shell_audit` and `uniqers_shell_places` are created on first start.
5. In game type `/shellcreator` (the command name follows the language; set `Config.Command = 'yourname'` for a fixed one).

### First run checklist

* [ ] `/shellcreator` opens the library
* [ ] **New shell** opens the editor, you can draw a room and press **Save**
* [ ] A template (for example *Apartment 1+1*) loads and the **walk-through** preview works
* [ ] In the library, **Tutorial and system test** finishes the system-test section without errors
* [ ] Your housing script lists the shell (see INTEGRATION.md)

### Updating

1. `stop uniqers-shellcreator`
2. Copy the new `uniqers-shellcreator` folder over the old one. **Keep your edited** `config*.lua` files and `locales/`.
3. Copy the new `fxmanifest.lua`, `server.js` and `client.lua` of `uqsc_baked`, and the whole `uqsc_baked_map` folder. **Do not overwrite** `uqsc_baked/bakes.json`, `uqsc_baked/mlos.json`, `uqsc_baked/stream/` or `uqsc_baked/export/`: they hold your bakes, MLOs and exports.
4. `ensure uniqers-shellcreator`.
5. If `stream/` changed in the release notes, players must reconnect once. 2.4.0 changed it (door leaves, roof, pool and spiral pieces, texture slots).

MLOs made by an older version are rebuilt automatically at the next start.

### Uninstalling

Stop and remove the three folders. The tables stay in the database; drop them yourself if you want them gone. Shells already exported with **Standalone export** keep working without the script.

## Support & Updates & Questions

<div align="left"><figure><img src="https://1436200110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZO8XqahJMWr9lDZTL9c1%2Fuploads%2F6U1vJg05XehtFcmGXsMW%2F3670325.png?alt=media&amp;token=603ba3cd-283e-42c5-a0e2-13d33fefb5bd" alt="https://discord.gg/MyrGhbf9tM" width="128"><figcaption></figcaption></figure></div>

\
<https://discord.gg/MyrGhbf9tM>
