Merchant docs /docs
Site Sign in Apply as merchant

fivem_serverBoot & SecureConfig

Merge boot into server.lua, BootstrapBaseUrl, TenantId, and startup verification.

In the merchant dashboard: After sign-in → merchant dashboard — Sign in · Sign in to dashboard

fivem_serverBoot.lua

Base file merged into server.lua — pulls config from GET /public/fivem/v1/bootstrap-config and validates license.

SecureConfig

SecureConfig = {
  BootstrapBaseUrl = "https://your-platform.example",
  TenantId = 123,
  TenantApiToken = "…"
}

BootstrapBaseUrl is the platform public domain — shared across merchants through server PLATFORM_PUBLIC_BASE_URL.

Register merchant logic

Put script logic inside _platformRegisterWhenLicenseValid(function() … end) at the bottom of server.lua — do not use exports[GetCurrentResourceName()]:RegisterWhenLicenseValid for the same resource.

config.lua

Customer edits only Config.LicenseKey in the manual path.