FiniAC Resource API
The Resource API is the set of server-side events, exports and commands that let your own resources work with FiniAC.
Features
Defer Events
Events FiniAC:DeferStarted and FiniAC:DeferFinished, fired while a player connects.
Use it when you run a queue, a rules screen or any other connection deferral and want it to wait for FiniAC's checks.
Example: a queue listens to FiniAC:DeferFinished and only adds players who passed, so banned players never take a queue slot.
Routing Bucket Integration
Event FiniAC:SetPlayerOriginalRoutingBucket.
Use it when you isolate new players in a custom routing bucket, so FiniAC knows where to return them after it has initialised.
Example: an entrance resource placing new players in a separate bucket. Use this to tell FiniAC where to return the player after the AC has initialised.
Money Tracking
Event FiniAC:UpdatePlayerMoney.
Use it when your server uses a framework other than ESX or QBCore and you want money history on the panel and the SusMoney detection.
Example: in your framework add the FiniAC trigger to update the money when the player's money changes. This will then be shown on the web panel for your players.
Detection Hooks
Export AddDetectionHook, a callback that sees every detection before FiniAC processes it.
Use it when your own scripts cause detections on purpose, you want framework data attached to detections, or you feed detections into your own tooling.
Example: a cinematic camera resource triggers freecam detections, add a hook that cancels the detections for players who are using the cinematic camera.
Custom Detection Command
Command fini detect, run from your own server-side code.
Use it when your own anti-cheat logic found something and you want it logged, triggered and banned like a FiniAC detection.
Example: your inventory script catches an impossible item count and runs fini detect, and the result goes through FiniAC logging, triggers and ban settings.