Configuration

1. Files change

Change the icon of the discord invite button, you can find the icon on this path: vms_pausemenu/html/icons/vms.png

2. config.lua

I. If your server retrieves the player's first and last name using xPlayer.getName() set false, otherwise if it is retrieved using the database column 'firstname' and 'lastname' from the users table set true.

Config.names_users = true -- true / false

II. Change the information displayed to the player when leaving the server.

Config.DisconnectReason = "vames.tebex.io - Thanks for game, see you soon..."

III. Replace pausemenu functions.

Config.Actions = {
    inventory = function()
        exports["inventory"]:showInventory()
    end,
    report = function()
        exports["prp_reports"]:showReports()
    end,
}

IV. Replace links to your server tebex store and discord invite.

Config.ShopLink = "https://vames.tebex.io/"
Config.DiscordLink = "https://discord.com/invite/mnXxXxhcPd"

3. Blocking use pausemenu in other scripts

This is how you can block a player from opening a pausemenu

exports["vms_pausemenu"]:canOpen(false)

If you have deactivated the possibility to open the pausemenu, after the end of the loop or after the end of the action in which the pausemenu is to be blocked, you must re-enable it with this export

exports["vms_pausemenu"]:canOpen(true)

Last updated