RVT Banners

Installation

From download to your first banner, in six steps.

  1. Download the script

    Download the zip from My account. The token.lua file, in the resource root, already comes with your license key (Config.License = "..."), filled in by the store on download. Do not edit that file.

  2. Put the folder on the server

    Copy the whole folder (with web, shared, lib and open) into the server resources. Keep the name rvt_banner: the exports and the render page depend on it.

  3. Add it to server.cfg

    Start the script after oxmysql (and after your framework, if you pick one).

    server.cfg
    # rvt_banner must start after oxmysql (and after your framework, if you pick one)
    ensure oxmysql
    ensure rvt_banner
  4. Database

    There is no SQL to import. The rvt_banner table is created automatically on first start, with the owner column as text (VARCHAR 128). An old numeric column is widened automatically: back up the table before updating an existing install.

  5. Set the permissions

    By default (Config.Permissions.mode = "ace") nobody has access. In server.cfg, grant the ACE permission rvt_banner.access (opens the studio) and, if you want, rvt_banner.manage (manager: edits any banner). To use framework groups, see the Configuration page.

    server.cfg
    # Studio access (default permission mode is ace; nobody has access until granted)
    add_ace group.banner_editor rvt_banner.access allow
    add_principal identifier.license:YOUR_LICENSE group.banner_editor
    
    # Optional: managers can edit and delete any banner
    add_ace group.banner_manager rvt_banner.manage allow
    # add_principal identifier.license:MANAGER_LICENSE group.banner_manager
  6. Restart and open the studio

    Restart the server or run ensure rvt_banner. The console should print "[rvt_banner] N banners carregados". In game, outside vehicles, use /banners with an authorized player.

Database permission

The database user needs CREATE, SELECT, INSERT, UPDATE and DELETE; when updating an install with a numeric owner column it also needs ALTER. If it cannot create tables, create rvt_banner manually (the SQL is in Common problems).

On-screen notices

By default (Config.Notification = "auto") notices use the native GTA notification. Only with Config.Framework = "creative" do they use the Notify client event (title, text, color, time in ms). Use "native" to force the GTA notification.

Updating

  • Download the new version from My account.
  • Replace the resource files, keeping your shared/config.lua options. The token.lua in the new download already comes filled with your license.
  • Restart with ensure rvt_banner. Banners live in the database and are not affected.