Skip to content
KS-Map-Editor

KS-Map-Editor

Installation

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

Configuration

Config.AllowedGrades = { "admin", "builder" }
Config.AutosaveInterval = 120 -- secondes entre deux sauvegardes automatiques de session

Autosave protects against losing a session if the server crashes or restarts unexpectedly during an edit.

Exporting a creation

Once editing is done, the session exports to a file ready to load:

exports['ks-map-editor']:ExportSession('decor_sandy_shores')
-- génère un fichier Lua listant chaque prop posé (modèle, position, rotation)

The generated file then loads like any other decor configuration, through a simple ensure in server.cfg.

Common issues

The editor menu doesn’t open. Check that your grade is listed in Config.AllowedGrades — access is silently denied by default to prevent unauthorized players from placing props.

Placed props disappear when the server restarts. An un-exported session is only temporary — use ExportSession (or the interface’s “Export” button) before restarting, then load the generated file like any other decor configuration.

Something not covered here? Join our Discord.