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 / AllowObjectServer
SolarAC__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).

ParameterTypeDescription
modelHashnumberThe weapon / vehicle / ped / object hash to allow.
lua
exports['SolarAC']:SolarAC__AllowVehicle(`adder`)
exports['SolarAC']:SolarAC__AllowWeapon(`WEAPON_PISTOL`)
SolarAC__DisallowWeapon / DisallowVehicle / DisallowPed / DisallowObjectServer
SolarAC__DisallowVehicle(modelHash)

Removes a model hash from the allow-list (the reverse of the Allow* exports).

ParameterTypeDescription
modelHashnumberThe hash to remove from the allow-list.
SolarAC__IsWeaponAllowed / IsVehicleAllowed / IsPedAllowed / IsObjectAllowedServer
SolarAC__IsVehicleAllowed(modelHash)

Returns whether a model hash is currently on the allow-list for that category.

ParameterTypeDescription
modelHashnumberThe hash to test.

Returns: boolean

SolarAC__IsEntityBlacklistedServer
SolarAC__IsEntityBlacklisted(category, modelHash)

Returns whether a hash is blacklisted for a category. category is one of weapons, vehicles, peds, objects, explosions, particles.

ParameterTypeDescription
categorystringEntity category (see list above).
modelHashnumberThe hash to test.

Returns: boolean

SolarAC__GetEntityWhitelistsServer
SolarAC__GetEntityWhitelists()

Returns the full allow-list table (weapons / vehicles / peds / objects) — handy for syncing or debugging.

Returns: table

SolarAC__SetEntityBlacklistsServer
SolarAC__SetEntityBlacklists(blacklistTable)

Replaces the entity blacklists in bulk. Pass a table keyed by category with arrays of hashes.

ParameterTypeDescription
blacklistTabletable{ vehicles = { hash, ... }, weapons = { ... }, ... }

Returns: boolean

lua
exports['SolarAC']:SolarAC__SetEntityBlacklists({
  vehicles = { `rhino`, `hydra` },
  weapons  = { `WEAPON_RAILGUN` },
})