Entity Whitelisting
INFO
This documentation covers FiniAC's entity whitelisting system, which prevents unauthorized entity spawning on your server.
Overview
FiniAC's entity whitelisting system provides advanced protection against cheaters spawning entities (vehicles, props, peds) on your server. The system works by tracking which entities are spawned by legitimate resources and only allowing those specific entities from those specific resources.
How it works:
- Records all entities spawned during normal server operation
- Associates each entity with its source resource
- Blocks any entity that doesn't match the whitelist pattern
- Even if a cheater spawns an allowed entity, it will be blocked if it doesn't come from a whitelisted resource
Recording Entities
To build your entity whitelist, you need to record entities during normal server operation when all your scripts are running.
Commands
fini entities record
Starts recording all entities that spawn on your server.
Usage:
fini entities recordWhat happens:
- FiniAC begins tracking all entities created on the server
- Each entity is recorded with its model hash and source resource
- Recording continues until you run the show command or restart the server
When to use:
- After a fresh server restart
- When legitimate players are on your server
fini entities show
Outputs all recorded entities to a pastebin link.
Usage:
fini entities showOutput:
- Displays the number of entities recorded and recording duration
- Generates a link containing the entity list in JSON format
- The link will appear in your server console
Format example:
["my_car_script:1234567", "my_prop_script:7654321", "9876543"]Entities are stored as:
resource:hash- Entity spawned by a specific resourcehash- Entity with no associated resource
Setup Guide
Step 1: Record Entities
- Start your server
- Run the command:bash
fini entities record - Let your server run normally for a while
- Try to make sure that all server features that spawn entities are tested.
TIP
Record for at least a few hours to ensure all entities are captured. For best results, repeat this process over multiple restarts.
Step 2: Export the List
- Run the command:bash
fini entities show - A link will appear in your console
- Open the link in your browser
- Click "View Raw" (top right corner)
- Copy the entire JSON array
Step 3: Configure Whitelist
- Open your FiniAC web panel
- Navigate to your server's Config page
- Find the "Entity list" config option
- Paste the entire JSON array into the text field
- Find the "Entity list type" config option
- Change it from
BlacklisttoWhitelist - Save your configuration
Important
Make sure you copy the entire JSON array including the square brackets [ ]. The web panel will format it automatically.
Step 4: Verify
After saving your configuration:
- Monitor your server for any entity-related detections
BadEntityCreatingEntityProtection
- If any legitimate entities are blocked:
- Repeat the recording process
- Add the new entities to your entity list manually
- Or add the entity's resource to
Resource entity whitelist(see below)
Troubleshooting
Legitimate Entities Being Blocked
Problem: Players report vehicles or props not spawning.
Solutions:
- Check your server logs for
BadEntityCreatingorEntityProtectiondetections - Note the
hashandresourcefrom the detection - Add the entity to your whitelist:
- Format:
"resource:hash"or"hash" - Or add the resource to
Resource entity whitelist
- Format:
- Save and test again
Recording Shows No Entities
Problem: fini entities show reports 0 entities recorded.
Solutions:
- Verify you ran
fini entities recordfirst - Make sure entities were actually spawned after running record
- Check that FiniAC is properly loaded
- Try recording for a longer period
Best Practices
Recommendations
- Record during peak hours to capture all commonly used entities
- Keep a backup of your entity list
- Record again if you add new resources that might spawn entities
- Monitor detections after enabling to catch false positives
- Use the Resource entity whitelist sparingly, as resources added here have broad entity spawning capabilities