Exports
Entity Control
Allow or block specific weapons, vehicles, peds, and objects by model hash. Use these to keep a curated allow-list (for whitelisted dev tools) or to hard-block models server-wide. Hashes accept any numeric value — e.g. a FiveM compile-time hash like
`WEAPON_PISTOL` or GetHashKey('adder').SolarAC__AllowWeapon / AllowVehicle / AllowPed / AllowObjectServerSolarAC__AllowVehicle(modelHash)
Adds a model hash to the corresponding allow-list so the anticheat treats it as permitted. One export per category (weapon / vehicle / ped / object).
| Parameter | Type | Description |
|---|---|---|
| modelHash | number | The weapon / vehicle / ped / object hash to allow. |
lua
exports['SolarAC']:SolarAC__AllowVehicle(`adder`)
exports['SolarAC']:SolarAC__AllowWeapon(`WEAPON_PISTOL`)SolarAC__DisallowWeapon / DisallowVehicle / DisallowPed / DisallowObjectServerSolarAC__DisallowVehicle(modelHash)
Removes a model hash from the allow-list (the reverse of the Allow* exports).
| Parameter | Type | Description |
|---|---|---|
| modelHash | number | The hash to remove from the allow-list. |
SolarAC__IsWeaponAllowed / IsVehicleAllowed / IsPedAllowed / IsObjectAllowedServerSolarAC__IsVehicleAllowed(modelHash)
Returns whether a model hash is currently on the allow-list for that category.
| Parameter | Type | Description |
|---|---|---|
| modelHash | number | The hash to test. |
Returns: boolean
SolarAC__IsEntityBlacklistedServerSolarAC__IsEntityBlacklisted(category, modelHash)
Returns whether a hash is blacklisted for a category. category is one of weapons, vehicles, peds, objects, explosions, particles.
| Parameter | Type | Description |
|---|---|---|
| category | string | Entity category (see list above). |
| modelHash | number | The hash to test. |
Returns: boolean
SolarAC__GetEntityWhitelistsServerSolarAC__GetEntityWhitelists()
Returns the full allow-list table (weapons / vehicles / peds / objects) — handy for syncing or debugging.
Returns: table
SolarAC__SetEntityBlacklistsServerSolarAC__SetEntityBlacklists(blacklistTable)
Replaces the entity blacklists in bulk. Pass a table keyed by category with arrays of hashes.
| Parameter | Type | Description |
|---|---|---|
| blacklistTable | table | { vehicles = { hash, ... }, weapons = { ... }, ... } |
Returns: boolean
lua
exports['SolarAC']:SolarAC__SetEntityBlacklists({
vehicles = { `rhino`, `hydra` },
weapons = { `WEAPON_RAILGUN` },
})