Exports
Whitelisting
SolarAC__WhitelistTeleportServerAllows a position change (SetEntityCoords / teleport) within the window without triggering teleport detection.
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
exports['SolarAC']:SolarAC__WhitelistTeleport(src, 4000)
SetEntityCoords(GetPlayerPed(src), x, y, z, false, false, false, true)SolarAC__WhitelistHealthRefillServerPermits health / armour writes (SetEntityHealth, SetPedArmour, AddArmourToPed, SetPlayerMaxArmour) for the window.
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
exports['SolarAC']:SolarAC__WhitelistHealthRefill(src, 3000)
-- now your heal logic runs without a godmode / health false-positiveSolarAC__WhitelistInvincibleServerPermits invincibility / damage-proof writes (SetPlayerInvincible, SetEntityInvincible, SetEntityCanBeDamaged, SetEntityProofs).
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
SolarAC__WhitelistReviveServerMarks an upcoming revive as legitimate (commonly paired with health refill for ambulance / EMS scripts).
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
SolarAC__WhitelistInvisibleServerPermits visibility toggles (e.g. admin spectate / cutscene staging) without flagging invisibility.
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
SolarAC__WhitelistStaminaServerRaises sprint-stamina thresholds for the window — use for buff items / scripted sprint effects.
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| durationMs | number? | Trust window in ms. Defaults to 5000. |
SolarAC__IsPlayerWhitelistedServerReturns whether a player currently holds an active whitelist of a given type. Types: teleport, healthRefill, revive, invincible, invisible, stamina.
| Parameter | Type | Description |
|---|---|---|
| whitelistType | string | One of the whitelist types listed above. |
| src | number | Connected player id. |
Returns: boolean
if exports['SolarAC']:SolarAC__IsPlayerWhitelisted('teleport', src) then
-- a teleport grace is currently active for this player
endSolarAC__FixPlayerServerServer-to-client correction helper. Asks the client to fix its own state and opens the matching short whitelist automatically. fixType is "health" or "position".
| Parameter | Type | Description |
|---|---|---|
| src | number | Connected player id. |
| fixType | string | "health" or "position". |
| data | table? | Optional payload passed to the client fix handler. |