
- ESX
By Luke

A FiveM whitelist admits approved players and rejects others during connection. Choose one documented admission mechanism and test approval, rejection and revocation before enabling it publicly. A Discord membership check and a reviewed player application serve different purposes.
For txAdmin, use the whitelist modes offered by your installed version. License approval, Discord membership and Discord role checks have different requirements. Selecting one mode does not automatically combine it with another.
Use the official txAdmin project and your installed settings for the current options. If you need multiple conditions, implement a deliberate, reviewed policy rather than running overlapping resources with unclear failure behavior.
For Discord-backed admission, test a missing account identifier, removed role, departed guild member and unavailable Discord integration on staging. Decide whether an unavailable dependency should deny entry with a useful retry message. Do not silently grant access when a check fails.
Keep staff approval permissions limited and record who approved or revoked access. Define how long application and identity records are retained.
Use a custom resource only for a requirement the maintained admission system cannot meet. In playerConnecting deferrals, respect the documented tick waits between deferral calls and always reach a controlled completion path.
Validate identifiers, use parameterized queries with the database adapter’s actual API and handle timeouts/errors. Test restarts and revocation before adding caches. An IP address is not a durable player identity, and a static allowlist example is not a complete production admission system.





