Docs Installation

Installation

Add a script to your server, start it in the right order and check that it runs.

Copy the resource

  1. Copy the resource folder into your server's resources folder.
  2. If the script includes an .sql file, import it into your server's database before the first start.

Add it to server.cfg

Add it to server.cfg, after your framework and its dependencies:

server.cfg
# framework first
ensure es_extended   # or qb-core / qbx_core

# then the script
ensure swagstudio_script
Start order matters: a script that starts before its framework can't find it, and stops with an error.

Start and check

Restart the server. In the console you should see the resource start:

server console
> ensure swagstudio_script
[resources] Started resource swagstudio_script

Seeing an error instead? Go to Troubleshooting.