nwvh/wx_safeevents ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple FiveM resource in Lua that helps secure server events with a safe event wrapper.

I want it to let me register a server event as protected, then trigger it from the client through an export instead of calling TriggerServerEvent directly. On the server side, the event should be set up so the first argument is reserved for the internal check, like the README shows with an extra underscore parameter. On the client side, I want an easy export like triggerSafeEvent that sends the event name and any arguments. On the server side, I want exports to register and unregister safe events too.

Please wire up the basic client, server, shared, and config structure so it’s ready to drop into a FiveM server. Keep it simple and functional, match the README behavior, and make sure the resource manifest is included so it works out of the box. If you need to look up current FiveM docs, go ahead and do that.