πŸ”Client-Side: Securing Event Triggers

To securely trigger events from the client to the server, we use the SecurityClient.TriggerSecure function. This function checks if the event is in the whitelist or blacklist and blocks triggering accordingly.

How It Works:

  1. Whitelisting: The event is checked against the whitelist. If it’s on the whitelist, it will trigger normally.

  2. Blacklisting: If the event is on the blacklist, it will be blocked, and the client will receive a notification.

  3. Logging: Each action is logged for visibility and troubleshooting.

  4. UI Feedback: You can customize UI feedback to inform players when events are blocked.

Example Usage:

-- Trigger an event to spawn the player
SecurityClient.TriggerSecure("player_spawn")

-- Trigger a non-whitelisted event
SecurityClient.TriggerSecure("malicious_event")

Last updated

Was this helpful?