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.