STG ScriptsDocumentation
Pause Menu

Installation

Install STG Pause Menu on your FiveM server in five steps, including the playtime column for ESX.

Pause Menu

STG Pause Menu

ESXQBCoreQBOX
View in store

Download the script

Sign in to the Cfx.re portal with the account you used at checkout and download stg_pausemenu from Granted Assets.

Move the resource

Extract the zip and place the stg_pausemenu folder inside the [STG] category folder in your resources directory.

resources/
└── [STG]/
    ├── stg_lib/
    └── stg_pausemenu/

Keep the folder name stg_pausemenu, with an underscore. The menu does not work under any other name, and the console keeps printing a rename warning until you fix it.

Install the dependencies

Pause Menu needs ox_lib, oxmysql and stg_lib. Skip this step if your server already runs them.

Add the playtime column (ESX)

On ESX the playtime is saved in the users table. Import [SETUP]/[SQL]/stg_pausemenu.sql from the zip into your database:

ALTER TABLE `users`
ADD COLUMN `playtime` VARCHAR(255) NOT NULL DEFAULT '0'

QBCore and QBOX save the playtime in the player's metadata, so skip this step there.

Start the script

Make sure [STG] starts after your framework, oxmysql and ox_lib in server.cfg:

ensure oxmysql
ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
ensure stg_lib
ensure [STG]

Then restart the whole server.

Want Discord profile pictures in the menu? Add a bot token as shown in Discord avatars.

Nothing happens or the console shows an error? See Common Errors.

Next steps

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page