Orbit Superpowers
A complete superhero framework for FiveM. Players unlock abilities, equip them into a loadout, level a hero character over time, and fight each other with beams, shockwaves and superhuman melee — all from one in-game menu.
Overview
Orbit Superpowers is not a single fly command or a standalone speed script. It is a framework with three layers that work together.
Players earn powers
Through items, admin commands, or your own scripts. Powers save to the database and stay with the character permanently.
Players build a loadout
A player may own thirty abilities but carry only six at a time. That limit is what creates real build choices.
Players level up
Every hero level raises max health, max energy, and both speed ceilings. A level 1 and a level 80 hero are not the same fight.
Everything runs off one radial menu. Players press X, pick an ability, and use it. Behind that wheel sits the progression system, the energy pool, cooldowns, and per-character persistence.
Everything is fully synced
This is built for multiplayer, not for looking good on your own screen. Every visible and audible part of the resource is networked, so what you see is what everyone else sees.
| What | How it syncs |
|---|---|
| Flight | Animations, banking roll, boost and landings all replicate — other players watch you fly, boost and slam into the ground in real time |
| Super speed | Movement and the ramp-up are networked, so bystanders see you tear past at the speed you are actually moving |
| Particles | Every effect uses networked particle calls — beams, blasts, shockwaves, auras and trails all render for everyone nearby |
| Auras & trails | Held server-side per player, including each player's chosen colours, and rebroadcast — so someone joining mid-session immediately sees your aura in your colours |
| Sounds | 3D positional and server-relayed with per-power distance limits. A beam fired across the street sounds like it came from across the street |
| Invisibility | Networked properly — other players genuinely cannot see you, rather than you just being hidden locally |
| Impacts | EMP blasts, melee hits and knockbacks are relayed through the server and applied on the victim's own client, so ragdolls and force land consistently |
State is cleaned up on disconnect too — no ghost auras or orphaned trails left behind by a player who crashed out mid-flight.
Requirements
| Resource | Required | Purpose |
|---|---|---|
| oxmysql | Yes | Database access for powers and hero stats |
| PolyZone | Yes | Zone maths used by area effects |
| orbit_sounds | Yes | 3D positional audio for beams, blasts and impacts |
| orbit_target | Yes | Soft-target locking used by melee powers |
| ox_lib | Optional | Only needed for the Power Injector companion resource |
Frameworks: QBCore, QBox, ESX or standalone. Detected automatically on startup — no configuration required.
Installation
Five steps, in order. The first one is the most commonly skipped and causes the most support requests.
-
Install the sound files
Drag every file from the
Sounds - DRAG TO orbit_soundsfolder intoorbit_sounds/ui/sounds/.Do this firstPowers still fire without this step, but every beam, blast, sonic boom and impact will be silent. Once copied, the source folder can be deleted.
-
Run the database file
Run
orbit_superpowers.sqlonce against your MySQL or MariaDB database. It creates two tables and is safe to run more than once.Upgrading from a version that predates speed caps? Also run
migrate_speed_caps.sql. -
Add the items
Paste the definitions from
qb_items.txtinto your framework's item list — for QBCore that isqb-core/shared/items.lua.Every power has three items: a grant shard, a remove shard, and a temporary vial.
Items are off by defaultPower items ship disabled so the resource does nothing unexpected on first start. To let players use shards and vials, set
Config.ItemSystem.enabled = true.Leaving it
falseis a valid choice — powers are then handed out purely through admin commands and your own scripts, which suits story-driven servers. -
Add to server.cfg
-- dependencies must start first ensure orbit_sounds ensure orbit_target ensure orbit_superpowers -
Set your permissions
Open
Config.luaand add your staff licences toConfig.PermissionLevels. Higher numbers get more access.Config.PermissionLevels = { ['license:xxxxxxxxxxxxxxxxxxxx'] = 4, }To let everyone use powers without a whitelist, set
Config.UsePermissions = false.
First run
Confirm the install in under a minute:
- Grant yourself a power —
/grantpower <yourId> FLIGHT - Turn powers on —
/togglepowers - Open the ability builder —
/builds - Drag Flight into a slot, close the panel, and press F
If you lift off the ground, everything is wired correctly.
Powers
Twelve abilities ship with the base resource. Each has its own animations, particle effects and positional sounds, and every one of those is networked to the players around you.
| Power | Type | What it does |
|---|---|---|
| EMP Blast | Energy | Electromagnetic pulse that disables every vehicle nearby and ragdolls everyone within 50m. Consumes your full charge. |
| Kinetic Fists | Melee | Every punch becomes a superhuman strike. Q throws an uppercut that sends targets airborne. |
| Energy Beam | Beam | Hold E to fire a sustained beam from your palm. Drains charge while active. |
| Big Beam | Beam | A two-handed, screen-filling mega beam with heavy area destruction. The strongest attack available. |
| Energy Bomb | Energy | Charge and hurl a large orb of condensed energy. Travels up to 400m and detonates on impact. |
| Laser Eyes | Beam | Precision beams that track exactly where you look. Works on the ground and mid-flight. |
| Flight | Movement | Full aerial movement with boost, hover, banking turns, sonic booms and smash landings. |
| Super Speed | Movement | Sprint at superhuman velocity, ramping up the longer you run. |
| Teleport | Movement | Blink to where you are aiming, with a ground marker showing the landing point. |
| Invisibility | Utility | Vanish completely. Properly networked, so other players genuinely cannot see you. |
| Thermal Vision | Utility | See heat signatures through walls and terrain. |
| Enhanced Regeneration | Passive | Heals wounds several times faster than normal. |
Passive powers
Flight, Super Speed and Enhanced Regeneration are passive. Drag them into a build and they are active immediately — no toggling, no separate command. Remove them from the build and they switch off. The system keeps this in sync on its own.
Controls
| Key | Action |
|---|---|
| X | Open the power wheel |
| E | Use the selected power |
| Q | Alternate power — uppercut and similar |
| F | Toggle flight |
| Shift+W | Sprint on foot, boost in the air |
| B | Flight brake — kills momentum and hovers |
| R | Free-aim camera |
| G | Grab a player, NPC or vehicle |
| LAlt+G | Aggressive grab |
| LAlt+1–9 | Quick swap to that build slot |
| Scroll | Adjust your personal speed cap |
/builds | Open the ability builder |
/togglepowers | Turn powers on or off |
Every key above can be rebound by the player in FiveM's own Settings → Key Bindings menu, including each quick-swap slot individually. No config editing, and no conflicts with your other resources.
Grabbing and throwing
A grabbed player is genuinely held — their movement locks, they attach to your hand, and they travel with you, including into the air if you take off. Their camera and push-to-talk keep working. Tap G to set them down gently, or hold it to charge a throw. A level gap rule prevents grabbing anyone more than a configured number of hero levels above you.
Flight & speed
Flight
Press F to take off after a charge-up animation. Movement is fully three-dimensional — you fly where you look, while strafing stays level. Boosting with Shift+W pulls the camera back, widens the field of view, and triggers a sonic boom at sufficient speed.
- Banking turns — the character rolls into turns in proportion to how hard you are turning
- Smash landings — dive from altitude and hit the ground with a shockwave
- Coasting physics — release the controls and you drift rather than stopping dead
- Ground clearance protection — prevents clipping through floors and buildings
- Scaling energy cost — flight drains real charge at level 1 and approaches free at max level; it can be set to zero drain entirely
Flight animation styles
Four styles ship with the resource — Anime, Hero, Orbit Set 1 and Orion Set — and players pick their own in the settings panel. Adding your own is a few lines in Config.FlightSets; the dropdown builds itself from whatever you define.
Super speed
Hold Shift+W and speed ramps up continuously rather than jumping to a flat multiplier. Trail effects stream from the feet, calves, knees and hips in the player's chosen colours, and live speed shows on the HUD in MPH.
Speed caps
Hero level sets the maximum a player can reach. Scrolling the mouse wheel while running or flying sets a personal cap anywhere from 10% to 100% of that ceiling — dial it down for control in the city, open it up to cross the map. The cap displays on the HUD and saves per character, with running and flight stored independently.
Progression
Any player who receives a power becomes a registered hero with a persistent character record. Levels run from 1 to 100, and each level raises four values.
The health curve accelerates: early levels give steady gains, later levels give large ones, so reaching high level is felt rather than merely displayed. Every number in the curve is a config value, including the XP cost per level.
The resource does not decide what earns experience. Hook GrantXP into whatever suits your server — winning fights, finishing jobs, completing missions, admin awards. Level-ups, health scaling and energy scaling are all handled for you.
Hero status also cleans itself up: if a player loses their last remaining power, the hero record is removed and powers switch off, leaving no orphaned rows. Everything persists across restarts, disconnects and character switches, and powers reload automatically on login.
Interface
Heads-up display
Always visible while powers are on: energy bar, health bar, live speed in MPH, the selected power and its icon, a cooldown timer that counts down over that icon, charge and speed-cap indicators, a stun timer with draining bar, and a countdown when running on a temporary vial.
Power wheel — X
A radial menu of equipped abilities. Scroll to highlight, E to select. Buttons along the bottom open Builds, Stats and Settings, so the whole system is reachable from one key.
Ability builder — /builds
A drag-and-drop loadout screen. Owned abilities sit on the left in category tabs — Melee, Beam, Movement, Utility, Passive — with a live count; build slots sit on the right. Drag across to equip, right-click a slot to remove, hover anything for a tooltip with its description, element and energy cost. Players can save any number of named builds and swap between them instantly.
Stats and settings
The stats panel shows level, an XP bar with progress to the next level, max health and max energy. The settings panel has two tabs: Toggles for aura, speed trail, flight trail and unlimited energy, and Config for the flight animation dropdown and four aura and trail colour pickers.
Quick swap
Hold LAlt and press 1–9 to switch build slot instantly, with an on-screen strip confirming the swap. In a fight this means chaining beam, blink, uppercut and EMP in a couple of seconds without opening a menu.
Colours and aura
The aura is a bone-attached particle system — energy wisps on the arms, legs and pelvis, with lightning crackling around the body. Four colour pickers control the primary and secondary aura and both trail colours. Choices save per character alongside the chosen flight style.
Getting powers
Four routes, usable in any combination.
Permanent power shards
Use the item, gain the power permanently. Every power has a matching remove shard for taking one back. All item definitions are pre-written and ready to paste in.
Temporary power vials
Inject a vial for timed access — 90 seconds by default, with a live countdown on the HUD. Injecting again while it runs extends the timer.
Each injection is less likely to work than the last. The first has a 90% success rate; every re-injection drops it by 15%, down to a 5% floor. Players chasing one more hit will eventually crash out. Every number is configurable.
The Power Injector
Included with purchase. Vials do not have to be self-administered — the injector lets one player inject another.
- Use the injector item to open a menu
- Pick a vial from your own inventory — grant, remove or temporary
- Pick a target from the nearby players list
- Pass a six-stage skill check to land the injection
- The server polls the distance between both players for the entire duration; breaking range fails it instantly
The vial is consumed either way, success or failure. The injector tool itself is never consumed. This is what turns powers from an inventory item into something that happens to people — stripping someone's powers by force, labs dosing test subjects, medics administering emergency boosts mid-firefight.
Commands and scripts
Grant or revoke any power from a command or from your own resources — quest rewards, boss drops, gang perks. The item system can also be switched off entirely with one config line, leaving powers purely story-driven.
Permissions
Each player gets a permission level, and each feature declares the level it requires. Regular players get the powers; staff get the extras — god mode, unlimited energy, forced flight and no-ragdoll.
Config.UsePermissions = true -- false = everyone can use powers Config.DefaultPermLevel = 1 -- level for unlisted players Config.PermissionLevels = { ['license:xxxxxxxxxxxxxxxxxxxx'] = 4, } Config.FeaturePermLevels = { godMode = 2, unlimitedEnergy = 2, flight = 2, EMP = 1, -- …one entry per feature and power }
Anything above a player's level is hidden from their menu entirely rather than greyed out, so regular players never see the staff tools exist.
Admin commands
All commands require the orbit_superpowers.admin ACE permission by default. Grant it in server.cfg:
add_ace group.admin orbit_superpowers.admin allow
| Command | Effect |
|---|---|
/grantpower [id] [power] | Give a power to a player |
/revokepower [id] [power] | Take a power away |
/heroinfo [id] | View a player's level, XP and stats |
/registerhero [id] | Register a player as a hero |
/setherolevel [id] [level] | Set hero level |
/setheroxp [id] [xp] | Set XP to an exact value |
/grantheroxp [id] [xp] | Award XP |
/setmaxhealth [id] [n] | Override max health |
/setmaxenergy [id] [n] | Override max energy |
/setspeed [id] [n] | Override the running speed ceiling |
/setflightspeed [id] [n] | Override the flight speed ceiling |
/resetspeed [id] | Clear overrides, back to level scaling |
The speed overrides suit events well — boost one player far past their level, then reset them with a single command afterwards.
Configuration
Config.lua ships open and editable, with a plain-English comment on every setting. The values below are the ones most servers change first.
| Setting | Default | Controls |
|---|---|---|
Config.BuildSize | 6 | Ability slots per build |
Config.ItemSystem.enabled | false | Whether power items work at all — turn on to use shards and vials |
Config.TempItemSystem.baseDuration | 90 | Seconds granted by a first injection |
Config.TempItemSystem.firstChance | 0.90 | Success rate of the first injection |
Config.TempItemSystem.chanceDropPerUse | 0.15 | Success rate lost per re-injection |
Config.Stats.MaxLevel | 100 | Highest reachable hero level |
Config.Stats.XPPerLevelBase | 1000 | XP for level N → N+1, multiplied by N |
Config.Stats.DefaultMaxHealth | 2000 | Health pool at level 1 |
Config.MaxEnergy | 100 | Base energy pool |
Config.PedGrabMaxLevelGap | 5 | Level gap above which grabbing fails |
Adding a power
Every power is a block in Config.Powers, and a commented template is included. Fill in the identity and mechanics fields and it appears in the wheel and the builder automatically.
Config.Powers.SHOCKWAVE = {
id = 'SHOCKWAVE',
name = 'Shockwave',
icon = 'img/shockwave.png',
color = '#f97316',
element = 'KINETIC',
category = 'MELEE',
desc = 'Slam the ground and release a radial shockwave.',
cooldown = 6, -- seconds
energyCost = 30.0,
}
Full config preview
Config.lua ships completely open and editable — nothing below is escrowed. This is the entire file, exactly as it arrives, so you can see precisely what you can change before you buy.
Every setting carries a plain-English comment. Powers are defined here too, which means retuning a power, changing its name, colour, icon, cooldown or energy cost, or adding an entirely new one, is all done in this one file.
Licence identifiers and internal animation and particle asset names are masked in this public preview. Every setting, value and comment is otherwise exactly as shipped.
Config.lua 1,013 lines
Config = {}
--========================================================
-- Commands
--========================================================
Config.TogglePowersCommand = "togglepowers"
Config.BuildSize = 6 -- Number of ability slots in the player's build
--========================================================
-- Framework Detection
--========================================================
Config.Framework = 'auto' -- 'auto' | 'qbcore' | 'esx' | 'qbox' | 'none'
--========================================================
-- Item System
--========================================================
Config.ItemSystem = {
enabled = true, -- false = disable item-based power acquisition entirely
removeOnUse = true, -- consume the grant-item from inventory after use
}
--========================================================
-- Temporary Item System
--========================================================
Config.TempItemSystem = {
enabled = true, -- master switch for temporary power items
baseDuration = 90, -- seconds granted on the first injection
injectionBonus = 45, -- seconds added per successful re-injection
firstChance = 0.90, -- success rate for the first injection (0.0 – 1.0)
chanceDropPerUse = 0.15, -- success rate deducted per subsequent injection
minChance = 0.05, -- floor: success rate never drops below this value
}
--========================================================
-- Aura & Trail Colors (RGB 0–255)
--========================================================
Config.ParticleRGB = { r = 23.0, g = 23.0, b = 34.0 } -- Primary aura
Config.ParticleRGB2 = { r = 0.0, g = 25.0, b = 100.0 } -- Secondary aura
Config.ParticleTrailRGB = { r = 0.0, g = 0.0, b = 255.0 } -- Trail primary
Config.ParticleTrailRGB2 = { r = 0.0, g = 125.0, b = 255.0 } -- Trail secondary
--========================================================
-- Permissions
--========================================================
Config.UsePermissions = true -- true = only whitelisted players can use powers
Config.DefaultPermLevel = 1 -- Level for unlisted players (1 = can use powers, locked out of special toggles)
-- Legacy license whitelist (grants level 99 if matched)
Config.AllowedLicenses = {
'license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
}
-- Per-player permission levels (higher = more access)
Config.PermissionLevels = {
['license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] = 4,
}
-- Minimum level required for each feature
Config.FeaturePermLevels = {
-- Toggles (level 2 = admin/whitelist only)
godMode = 2,
superSpeed = 2,
aura = 2,
noRagdoll = 2,
unlimitedEnergy = 2,
flight = 2,
speedRam = 4,
speedTrail = 1, -- on/off toggle; accessible to all
flightTrail = 1, -- on/off toggle; accessible to all
-- Powers (level 1 = accessible to all registered players)
EMP = 1,
KINETICFISTS = 1,
ENERGYBEAM = 1,
ENERGYBOMB = 1,
BIGENERGYBEAM = 1,
LASEREYES = 1,
SUPERSPEED = 1,
FLIGHT = 1,
ENHANCEDREGEN = 1,
-- Menus
configMenu = 1, -- config tab (colors, flight style) accessible to all
}
--========================================================
-- Stats & Leveling
--========================================================
Config.Stats = {
-- Starting values for a newly registered hero (level 1)
DefaultLevel = 1,
DefaultMaxHealth = 2000,
DefaultMaxEnergy = 100.0,
-- The highest level a hero can reach
MaxLevel = 100,
-- XP needed to go from level N to level N+1 = XPPerLevelBase × N
-- Example at 1000: level 1→2 needs 1000 XP, level 10→11 needs 10,000 XP
XPPerLevelBase = 1000,
-- ── Health scaling ───────────────────────────────────────────────────────
-- Each level grants a flat HP bonus plus an accelerating curve bonus.
-- Formula: MaxHealth = DefaultMaxHealth
-- + (level-1) × HealthPerLevel
-- + floor((level-1)^1.5 × HealthCurveMultiplier)
--
-- Reference values with defaults (DefaultMaxHealth=2000, PerLevel=100, Curve=8):
-- Level 1 → 2000 HP Level 10 → 3116 HP
-- Level 25 → 5144 HP Level 50 → 9644 HP Level 100 → 19780 HP
HealthPerLevel = 100, -- Flat HP added every level
HealthCurveMultiplier = 8, -- Accelerating bonus at higher levels (raise for faster late-game growth)
-- ── Energy scaling ───────────────────────────────────────────────────────
-- Each level adds a flat energy bonus.
-- Formula: MaxEnergy = DefaultMaxEnergy + (level-1) × EnergyPerLevel
--
-- Reference values with defaults (DefaultMaxEnergy=100, PerLevel=2):
-- Level 1 → 100 Level 10 → 118 Level 50 → 198 Level 100 → 298
EnergyPerLevel = 8.0, -- Flat energy added every level
-- ── Super Speed level scaling ─────────────────────────────────────────────
-- Level interpolates the speed ceiling from Level-1 value to MaxLevel value.
-- The scroll wheel then lets the player set a cap anywhere from 10 % to 100 %
-- of that ceiling. Actual speed still ramps up from SpeedMultiplierDefault.
--
SpeedMaxAtLevel1 = 30.0, -- m/s ceiling at level 1
SpeedMaxAtMaxLevel = 150.0, -- m/s ceiling at max level
SpeedScrollStep = 0.05, -- cap fraction changed per scroll tick (5 %)
-- ── Flight level scaling ──────────────────────────────────────────────────
-- Same system for flight. Values are flight-multiplier units;
-- actual m/s ≈ multiplier × 20. At level 1 a multiplier of 1.0 → ~20 m/s.
--
FlightMultMaxAtLevel1 = 4.0, -- multiplier ceiling at level 1
FlightMultMaxAtMaxLevel = 15.0, -- multiplier ceiling at max level
FlightScrollStep = 0.05, -- cap fraction changed per scroll tick
}
--========================================================
-- Health Regeneration
--========================================================
Config.HealthRegenIntervalMs = 1000 -- ms between regen ticks
Config.HealthRegenRate = 3 -- HP restored per tick (base)
--========================================================
-- Energy
--========================================================
Config.MaxEnergy = 100.0 -- Maximum energy pool
Config.RechargeIntervalMs = 1000 -- ms between auto-recharge ticks
Config.RechargeRateIdle = 1.0 -- Energy per tick while idle
Config.RechargeRateRunning = 5.0 -- Energy per tick while running
--========================================================
-- Powers
-- Each entry is passed directly to RegisterPower, so
-- identity fields (id, name, icon…) live alongside mechanics.
--========================================================
Config.Powers = {
EMP = {
-- Identity
id = 'EMP',
item = 'orbit_emp', -- item that grants this power
removeItem = 'orbit_emp_remove', -- item that revokes this power
tempItem = 'orbit_emp_temp', -- item that temporarily grants this power
name = 'EMP Blast',
icon = 'img/emp.png',
color = '#3BE0F6',
glow = '#3BE0F6',
element = 'ENERGY',
category = 'ENERGY',
desc = 'Release a devastating electromagnetic pulse that disables nearby vehicles and ragdolls all enemies. Consumes your full energy charge.',
-- Cooldown (seconds)
cooldown = 8,
-- Mechanics
radius = 50.0, -- Effect radius (m)
chargeIncrement = 0.5, -- Energy gained per wind-up tick
animThreshold = 0.65, -- Anim progress fraction that fires the blast
waitBeforeFx = 300, -- ms delay before FX start
explosionType = 65, -- GTA explosion type
postDrainRate = 2.0, -- Energy drain per tick after blast
energyCost = 75.0,
-- Sounds
soundMaxRange = 500,
},
KINETICFISTS = {
-- Identity
id = 'KINETICFISTS',
item = 'orbit_kineticfists',
removeItem = 'orbit_kineticfists_remove',
tempItem = 'orbit_kineticfists_temp',
name = 'Kinetic Fists',
icon = 'img/kinetic_fists.png',
color = '#3BE0F6',
glow = '#3BE0F6',
element = 'ENERGY',
category = 'MELEE',
desc = 'Channel raw kinetic energy through your fists. Every punch launches enemies with superhuman force. [Q] uppercut sends targets airborne.',
-- Cooldown (seconds)
cooldown = 0.5,
-- Mechanics
energyCost = 15.0, -- Energy cost per strike
defaultForce = 75.0, -- Generic knockback force
vehForce = 150.0, -- Force applied to vehicles
pedForce = 80.0, -- Force applied to peds
ragdollDur1 = 4000, -- Ragdoll duration lower bound (ms)
ragdollDur2 = 5000, -- Ragdoll duration upper bound (ms)
hitBoxOffset1 = 5.0, -- Hit-box X half-extent (m)
hitBoxOffset2 = 15.0, -- Hit-box Y half-extent (m)
},
ENERGYBEAM = {
-- Identity
id = 'ENERGYBEAM',
item = 'orbit_energybeam',
removeItem = 'orbit_energybeam_remove',
tempItem = 'orbit_energybeam_temp',
name = 'Energy Beam',
icon = 'img/energy_beam.png',
color = '#C9CC25',
glow = '#C9CC25',
element = 'ENERGY',
category = 'BEAM',
desc = 'Project a sustained beam of concentrated energy from your palm. Hold [E] to fire continuously. Drains energy while active.',
-- Cooldown (seconds)
cooldown = 2,
-- Mechanics
drainRate = 2.0, -- Energy drained per 100 ms tick
explosionType = 0, -- GTA explosion type at impact
offset = { x = 0.15, y = -0.0, z = 0.1, rotx = 165.0, roty = 225.0, rotz = 0.0 },
-- Sounds
soundMaxRange = 150,
},
ENERGYBOMB = {
-- Identity
id = 'ENERGYBOMB',
item = 'orbit_energybomb',
removeItem = 'orbit_energybomb_remove',
tempItem = 'orbit_energybomb_temp',
name = 'Energy Bomb',
icon = 'img/energy_bomb.png',
color = '#3BE0F6',
glow = '#3BE0F6',
element = 'ENERGY',
category = 'ENERGY',
desc = 'Charge and launch a massive orb of condensed energy. Detonates on impact or at maximum range. High energy cost.',
-- Cooldown (seconds)
cooldown = 6,
-- Mechanics
energyCost = 40.0, -- Flat energy cost on launch
maxDistance = 400.0, -- Max travel distance before detonation (m)
explosionType = 82, -- GTA explosion type
forceRadius = 100.0, -- Knockback radius on impact (m)
particle = {
FxAsset = 'scr_sr_adversary',
Fx = 'scr_sr_lg_weapon_highlight',
Scale = 6.0,
Color = { R = 0.0, G = 25.0, B = 100.0 },
},
},
BIGENERGYBEAM = {
-- Identity
id = 'BIGENERGYBEAM',
item = 'orbit_bigenergybeam',
removeItem = 'orbit_bigenergybeam_remove',
tempItem = 'orbit_bigenergybeam_temp',
name = 'Big Beam',
icon = 'img/big_energy_beam.png',
color = '#3BE0F6',
glow = '#3BE0F6',
element = 'ENERGY',
category = 'BEAM',
desc = 'Unleash a two-handed mega beam with devastating wide-area destruction. The most powerful attack available.',
-- Cooldown (seconds)
cooldown = 8,
-- Mechanics
drainRate = 4.0, -- Energy drained per 100 ms tick
explosionType = 82, -- GTA explosion type at impact
offset = { x = 0.5, y = 1.1, z = -0.0, rotx = -90.0, roty = 32.0, rotz = -30.0 },
},
SUPERSPEED = {
id = 'SUPERSPEED',
item = 'orbit_superspeed',
removeItem = 'orbit_superspeed_remove',
tempItem = 'orbit_superspeed_temp',
name = 'Super Speed',
icon = 'img/speed.png',
color = '#3b82f6',
glow = 'rgba(245,158,11,0.3)',
element = 'KINETIC',
category = 'MOVEMENT',
passive = true,
desc = 'Passively grants super speed. Sprint with Shift + W to move at superhuman velocity. Speed ramps up the longer you run.',
cooldown = 0,
energyCost = 0,
},
FLIGHT = {
id = 'FLIGHT',
item = 'orbit_flight',
removeItem = 'orbit_flight_remove',
tempItem = 'orbit_flight_temp',
name = 'Flight',
icon = 'img/flight.png',
color = '#3b82f6',
glow = 'rgba(59,130,246,0.3)',
element = 'AERIAL',
category = 'MOVEMENT',
passive = true,
desc = 'Passively grants the ability to fly. Press F to take off. Boost with Shift + W while airborne. Land with a smash from altitude.',
cooldown = 0,
energyCost = 0,
-- Energy drain while airborne.
-- Drain scales from flightDrainRateMax (level 1) down to flightDrainRateMin (max level).
-- By level 60 the drain is roughly 40 % of the level-1 cost.
-- Set flightDrainRateMax = 0 to disable drain entirely.
flightDrainRateMax = 2.0, -- energy drained per interval at level 1
flightDrainRateMin = 0.0, -- energy drained per interval at max level
flightDrainIntervalMs = 500, -- ms between each drain tick
},
LASEREYES = {
-- Identity
id = 'LASEREYES',
item = 'orbit_lasereyes',
removeItem = 'orbit_lasereyes_remove',
tempItem = 'orbit_lasereyes_temp',
name = 'Laser Eyes',
icon = 'img/laser_eyes.png',
color = '#f43f5e',
glow = '#f43f5e',
element = 'THERMAL',
category = 'BEAM',
desc = 'Burn targets with precision laser beams from your eyes. Syncs to your aim direction. Effective in ground and aerial combat.',
-- Cooldown (seconds)
cooldown = 2,
-- Mechanics
drainRate = 2.0, -- Energy drained per 100 ms tick
explosionType = 3, -- GTA explosion type at impact
flightYawOffset = 8.0, -- Degrees right so beam tip stays visible during flight
bodyLerpRate = 0.08, -- How fast ped body rotates to follow camera (0=frozen, 1=instant)
-- Eye-bone attachment offsets
offsetRight = { x = 0.035, y = 0.0, z = 0.023, rotx = 0.0, roty = 0.0, rotz = 0.0 },
offsetLeft = { x = -0.035, y = 0.0, z = 0.023, rotx = 0.0, roty = 0.0, rotz = 0.0 },
offsetRightFlight = { x = 0.035, y = 0.0, z = -0.03, rotx = 0.0, roty = 0.0, rotz = -15.0 },
offsetLeftFlight = { x = 0.035, y = 0.0, z = 0.03, rotx = 0.0, roty = 0.0, rotz = -15.0 },
-- Sounds
soundMaxRange = 150,
},
THERMAL = {
id = 'THERMAL', -- Internal ID. Must be unique and match the table key (all caps).
item = 'orbit_thermal', -- item that grants this power (register in your framework)
removeItem = 'orbit_thermal_remove', -- item that revokes this power
tempItem = 'orbit_thermal_temp', -- item that temporarily grants this power
name = 'Thermal Vision', -- Display name shown in the power wheel and HUD.
icon = 'img/thermal.png', -- Path to the icon image shown in the power wheel.
color = '#f97316', -- Hex color used for the power card and UI highlights.
glow = '#f97316', -- Hex color for the glow ring around the icon. Can differ from color.
element = 'THERMAL', -- Flavour label shown on the power card (e.g. 'ENERGY', 'THERMAL').
category = 'UTILITY', -- Groups the power in the build manager (e.g. 'MELEE', 'BEAM', 'MOVEMENT').
desc = 'Toggle thermal vision to see heat signatures through walls and terrain. Automatically deactivates after the max duration.', -- Short description shown in the power wheel tooltip.
cooldown = 3, -- Seconds the player must wait before using this power again.
drainRate = 0.5 -- Energy deducted from the bar each time the power is activated.
},
INVISIBLE = {
id = 'INVISIBLE', -- Internal ID. Must be unique and match the table key (all caps).
item = 'orbit_invisible', -- item that grants this power (register in your framework)
removeItem = 'orbit_invisible_remove', -- item that revokes this power
tempItem = 'orbit_invisible_temp', -- item that temporarily grants this power
name = 'Invisibility', -- Display name shown in the power wheel and HUD.
icon = 'img/invisible.png', -- Path to the icon image shown in the power wheel.
color = '#94a3b8', -- Hex color used for the power card and UI highlights.
glow = '#94a3b8', -- Hex color for the glow ring around the icon. Can differ from color.
element = 'STEALTH', -- Flavour label shown on the power card (e.g. 'ENERGY', 'THERMAL').
category = 'UTILITY', -- Groups the power in the build manager (e.g. 'MELEE', 'BEAM', 'MOVEMENT').
desc = 'Turn completely invisible to players and NPCs. Automatically reappears after the max duration.', -- Short description shown in the power wheel tooltip.
cooldown = 3, -- Seconds the player must wait before using this power again.
drainRate = 0.5, -- Energy deducted from the bar each time the power is activated.
particle_dict = 'scr_xm_heat',
particle_fx = 'scr_xm_heat_camo',
particle_scale = 1.0,
alpha = 30,
},
TELEPORT = {
id = 'TELEPORT',
item = 'orbit_teleport',
removeItem = 'orbit_teleport_remove',
tempItem = 'orbit_teleport_temp',
name = 'Teleport',
icon = 'img/teleport.png',
color = '#a855f7',
glow = '#a855f7',
element = 'SPATIAL',
category = 'MOVEMENT',
desc = 'Instantly blink to your target location. Uses aim to determine the destination up to 15 meters away.',
particle_dict = 'scr_rcbarry1',
particle_fx = 'scr_alien_teleport',
particle_scale = 1.3,
cooldown = 5,
energyCost = 15.0,
maxRange = 50.0,
},
ENHANCEDREGEN = {
id = 'ENHANCEDREGEN',
item = 'orbit_enhancedregen',
removeItem = 'orbit_enhancedregen_remove',
tempItem = 'orbit_enhancedregen_temp',
name = 'Enhanced Regeneration',
icon = 'img/enhancedregen.png',
color = '#22c55e',
glow = '#22c55e',
element = 'BIOLOGY',
category = 'PASSIVE',
passive = true,
desc = 'Passively accelerates health regeneration. While equipped, your body heals wounds at an accelerated rate.',
cooldown = 0,
energyCost = 0,
regenMultiplier = 3.0, -- multiplier applied on top of Config.HealthRegenRate
},
}
--========================================================
-- Vehicle Grab & Throw
--========================================================
Config.EntityThrowForce = 100.0 -- Launch force on throw
Config.EntityVehicleGrabRadius = 10.0 -- Detection radius (m)
--========================================================
-- Ped Grab
--========================================================
Config.PedGrabOffsets = {
save = {
pos = { x = 0.3, y = 0.1, z = -0.6 },
rot = { x = -220.0, y = -70.00, z = -90.0 },
},
agg = {
pos = { x = -0.1, y = -0.45, z = -0.15 },
rot = { x = 70.0, y = 70.0, z = 80.0 },
},
}
Config.PedGrabMaxLevelGap = 5 -- Cannot grab players more than this many hero levels above you.
--========================================================
-- Super Speed
--========================================================
Config.SpeedMultiplierDefault = 0.6 -- Base speed scale
Config.SpeedMultiplierMax = 2.7 -- Max speed scale
Config.SpeedMultiplierIncrease = 0.01 -- Ramp-up per tick (legacy, used if SpeedRamp is unset)
Config.SpeedRamp = 5.0 -- m/s added per 10 ms tick while sprinting
Config.GroundZOffset = 1.0 -- Root object Z offset
-- ── Ramming ───────────────────────────────────────────────────────────────
-- Once the root object is moving faster than MinSpeed it is polled every frame
-- for collisions. On contact, a box around the root is scanned for peds:
-- • NPCs are gibbed and deleted.
-- • Players below PlayerHealthThreshold HP are gibbed, killed, and hidden
-- until they leave the framework's downed state (QB revives on death,
-- which would otherwise pop the corpse back into view).
Config.SpeedRamming = {
-- ── Feature lock ──────────────────────────────────────────────────────────
-- Speed ramming is not released yet. While Locked is true the whole feature
-- is hard-disabled: the collision poll never runs, the Settings toggle is
-- hidden from every player regardless of permission level, and both the
-- NUI toggle and the scripting API refuse to switch it on. Everything below
-- is left in place and tunable so the feature can be enabled in one edit
-- once it ships — set Locked = false and Enabled = true.
Locked = true,
Enabled = false,
MinSpeed = 1.0, -- m/s the root must exceed before collision polling starts
-- Scan box, relative to the root object (metres).
BoxHalfWidth = 1.75,
BoxForward = 3.5,
BoxBack = 1.5,
BoxHeightUp = 2.5,
BoxHeightDown = 2.5,
HitPedsInVehicles = false, -- true = also gib peds sitting in vehicles
TargetCooldownMs = 1500, -- per-target re-hit lockout
PlayerHealthThreshold = 1000, -- players at/above this HP shrug off the impact
NpcDeleteDelayMs = 60, -- lets the gore ptfx spawn before the ped is removed
-- Gore burst. Effects use PtfxBone above with zero offset and rotation.
Ptfx = {
{ asset = 'core', fx = 'blood_stab', scale = 1.30 },
{ asset = 'nibfx_super', fx = 'head_smash', scale = 1.38 },
{ asset = 'core', fx = 'blood_mist', scale = 1.06 },
{ asset = 'core', fx = 'blood_throat', scale = 1.70 },
{ asset = 'core', fx = 'blood_fall', scale = 1.70 },
{ asset = 'nibfx_super', fx = 'blood_exp_core', scale = 1.70 },
{ asset = 'core', fx = 'blood_fall', scale = 3.43 },
{ asset = 'nibfx_super', fx = 'hbones_exp', scale = 2.55 },
{ asset = 'nibfx_super', fx = 'hbones_exp', scale = 2.0 },
{ asset = 'nibfx_super', fx = 'hbones_exp', scale = 1.55 },
{ asset = 'nibfx_super', fx = 'hbones_exp', scale = 0.55 },
},
PtfxBone = 31086, -- SKEL_Head
Sound = 'nui://orbit_sounds/ui/sounds/head_explode.wav',
SoundDistance = 40,
SoundThrottleMs = 250, -- min gap between gore sounds when ploughing a crowd
-- Blood decals painted onto the ped model. The attacker wears the gore of
-- everyone they have run through; the victim keeps theirs across the revive,
-- so they get back up drenched.
BloodDecals = {
Enabled = true,
Attacker = true,
Victim = true,
CooldownMs = 400, -- attacker re-paint throttle when ploughing a crowd
Cleanliness = 4, -- SetPedDamageCleanliness: 0 perfect → 4 messy
-- Applied in order. Unknown pack names are a silent no-op in the engine,
-- so extra entries from your own peddamage.xml are safe to add here.
Packs = {
'BigHitByVehicle',
'SCR_Dst_Shot_Chest',
'SCR_Dst_Shot_Head',
'SCR_Torture',
'Explosion_Med',
'Explosion_Large',
'Scr_Finale_Michael_Face',
'HOSPITAL_0', 'HOSPITAL_1', 'HOSPITAL_2', 'HOSPITAL_3', 'HOSPITAL_4',
'HOSPITAL_5', 'HOSPITAL_6', 'HOSPITAL_7', 'HOSPITAL_8', 'HOSPITAL_9',
},
PackDamage = 100.0,
PackMult = 1.0,
-- Scattered per-zone splatter on top of the packs, for full coverage.
Zones = { 0, 1, 2, 3, 4, 5 }, -- torso, head, arms, legs
ZonePasses = 3, -- random decals per zone
},
-- Fullscreen splatter via orbit_bloodscreen. No-ops if that resource is off.
BloodScreen = {
Enabled = true,
Profile = 'finisher', -- the heaviest profile in orbit_bloodscreen
Intensity = 1.0,
Attacker = true,
Victim = true, -- fired once they are back up; death wipes the overlay
},
-- Corpse hiding (victim side)
GraceMs = 2000, -- ignore the downed check this long after the hit
RecoverDebounceMs = 750, -- must read "not downed" this long before reappearing
MaxHideMs = 600000, -- hard safety cap on the hide loop
DownedHealthMin = 5, -- HP at or below this counts as downed
-- Optional override: return true while the local player is dead/downed.
-- Leave nil to use the built-in QB/qbox/ESX-friendly statebag check.
IsDownedFn = nil,
}
--========================================================
-- Flight
--========================================================
Config.FlightMultiplierDefault = 1.5 -- Speed scale at rest
Config.FlightMultiplierMax = 2.75 -- Speed scale at full boost
Config.FlightBoostIncrease = 0.5 -- Scale ramp-up per tick
Config.FlightDamping = 0.9 -- Hover velocity damping
Config.FlightIdleDamping = 0.992 -- Coasting damping when no movement key is held
Config.FlightVerticalCoastMs = 1200 -- How long downward momentum coasts after Ctrl release
Config.FlightGroundClearance = 1.35 -- Minimum root height above nearby ground while flying
Config.FlightGroundProbeDepth = 8.0 -- How far below the root to search for the current floor
Config.FlightSmashMinDownSpeed = 14.0 -- Minimum downward speed needed to smash while boosting
Config.RollUpdateThreshold = 0.5 -- Min roll change (deg) to re-attach
Config.FlightBoostImpactRadius = 4.0 -- Shockwave radius (m)
Config.FlightBoostCooldown = 2500.0
Config.FlightDustParticle = {
FxAsset = 'veh_deluxo',
Fx = 'veh_xm_deluxo_turbulance_default',
Scale = 2.5,
Offset = { X = 0.0, Y = 0.0, Z = -0.7 },
Count = 2,
}
Config.InvisibleParticle = {
FxAsset = 'scr_xm_heat',
Fx = 'scr_xm_heat_camo',
Scale = 1.0,
Offset = { X = 0.0, Y = 0.0, Z = 0.0 },
Count = 1,
}
Config.BigBeamChargeParticle = {
FxAsset = 'ORBIT_ENERGY',
Fx = 'energy_ball',
Scale = 1.0,
Bone = 0xDEAD,
Offset = { X = 0.0, Y = 0.0, Z = 0.0 },
Color = { R = 0.2, G = 0.8, B = 1.0 },
}
Config.EnergyBombParticle = {
FxAsset = 'scr_sr_adversary',
Fx = 'scr_sr_lg_weapon_highlight',
Scale = 6.0,
Color = { R = 0.0, G = 25.0, B = 100.0 },
}
--========================================================
-- Landing
--========================================================
Config.MinSmashLandDistance = 3.0 -- Min altitude for smash land (m)
Config.LandingSpeed = 100.0 -- Dive speed (m/s)
Config.LandingImpactRadius = 15.0 -- Shockwave radius (m)
--========================================================
-- Controls (GTA control IDs — vanilla controls used for gameplay logic)
-- https://docs.fivem.net/docs/game-references/controls/
--========================================================
Config.Controls = {
RunForward = 32, -- W
SprintModifier = 21, -- Left Shift
UsePower = 51, -- E (kept for cross-extension compatibility; see Config.Keybinds)
UseAltPower = 44, -- Q (kept for cross-extension compatibility; see Config.Keybinds)
}
--========================================================
-- Keybinds (default keys for remappable binds)
-- Players can override these in ESC → Settings → Key Bindings.
-- UsePower / UseAltPower are shown in the menu but call sites still
-- use Config.Controls GTA IDs until cross-extension migration is done.
--========================================================
Config.Keybinds = {
UsePower = 'e',
UseAltPower = 'q',
Grab = 'g',
OpenPowerWheel = 'x',
ToggleFlight = 'f',
Brake = 'b',
FreecamMode = 'r',
}
--========================================================
-- Quick Swap (LALT + key, one entry per build slot)
-- Keys are FiveM key-binding names shown in ESC → Settings → Key Bindings.
-- Players can rebind each slot individually. LALT must still be held.
-- Extend Keys if BuildSize is raised above 9.
--========================================================
Config.QuickSwap = {
Modifier = 19, -- Left Alt (INPUT_CHARACTER_WHEEL) — must be held
Keys = { '1', '2', '3', '4', '5', '6', '7', '8', '9' },
}
--========================================================
-- Animation Sets
--========================================================
-- Add more sets here with the same fields. Label is optional;
-- the UI will use the config key if Label is omitted.
Config.FlightSets = {
Set1 = {
Label = 'Anime',
Dict = 'orbitflight@rez',
Up = 'up',
Forward = 'forward',
Backward = 'backward',
Left = 'left',
Right = 'right',
Boost = 'boost',
LandDict = 'rez@ltflight',
Land = 'orbitland_clip',
Takeoff = 'orbittakeoff_idle_clip',
},
Set2 = {
Label = 'Hero',
Dict = 'rez@hero_flight',
Forward = 'hero_flight_fwd_clip',
Backward = 'hero_flight_bwd_clip',
Up = 'hero_flight_idle_clip',
Left = 'hero_flight_left_clip',
Right = 'hero_flight_right_clip',
Boost = 'hero_flight_boost_clip',
LandDict = 'rez@ltflight',
Land = 'orbitland_clip',
Takeoff = 'orbittakeoff_idle_clip',
},
Set3 = {
Label = 'Orbit Set 1',
Dict = 'orbit@super_flight',
Forward = 'orbit_forward_clip',
Backward = 'orbit_back_clip',
Up = 'orbit_idle_clip',
Left = 'orbit_left_clip',
Right = 'orbit_right_clip',
Boost = 'boost_clip',
LandDict = 'rez@ltflight',
Land = 'orbitland_clip',
Takeoff = 'orbittakeoff_idle_clip',
},
}
--========================================================
-- Trail (Aura Outline)
--========================================================
Config.TrailColumns = 8 -- Points around circumference (4=box, 8+=smooth)
Config.TrailRadius = 0.35 -- Distance from player center (m)
Config.TrailStackCount = 14 -- Vertical layers
Config.TrailStackHeight = 2.0 -- Total stack height (m)
Config.TrailZBase = 0.0 -- Base Z offset from bone
Config.TrailUseCircle = true -- true=circle, false=rectangle
--========================================================
-- Sounds
--========================================================
Config.Sounds = {
flightSonicBoom = 200,
flightTakeoff = 150,
flightSmash = 300,
}
--========================================================
-- Internal / Advanced (change at your own risk)
--========================================================
Config.EmaAlpha = 0.15
Config.HudIntervalMs = 75
Config.Deadband = 2
Config.TrailWait = 250
Config.TrailEvolutionSpeed = 100.0
--========================================================
-- Asset Preloading
--========================================================
Config.AnimDicts = {
"orbit@rez",
"rez@super_throw",
"melee@unarmed@streamed_core",
"move_m@generic",
"rez@laser_eyes",
"move_p_m_two",
"rez@hero_flight",
"orbitattacks@rez",
"orbitflight@rez",
"rez@ltflight",
'orbit@pickups',
'kiml@jjkcc@move'
}
Config.PropAssets = {
"orbit_energy_beam",
"orbit_spiritbomb",
"sentry_beam",
"prop_beach_volball01",
"hero_laser_red",
"simple_eye_glow_red",
'orbit_rock1',
'orbit_rock2',
'orbit_ground_break1',
'orbit_ground_break_asphalt',
'orbit_ground_break_sand',
'orbit_ground_break_terrain',
}
Config.Anims = {
Rez = "orbit@rez",
RezThrow = "rez@super_throw",
Melee = "melee@unarmed@streamed_core",
MoveGeneric = "move_p_m_two",
EnergyBeam = "orbitattacks@rez",
LaserEyes = "rez@laser_eyes",
RezBeam = "orbitattacks@rez",
}
Config.PtfxAssets = {
"orbit_shockwave",
"scr_xs_dr",
"veh_deluxo",
"core",
"scr_bike_adversary",
"scr_apartment_mp",
'scr_minigamegolf',
'nibfx_super',
'orbitfx_super',
'scr_finale1',
'scr_rcbarry1',
'scr_xm_heat'
}
Config.Particles = {
VehDeluxo = { asset = "veh_deluxo", fx = { "veh_xm_deluxo_turbulance_default" } },
Shockwave = { asset = "orbit_shockwave", fx = { "shockwave" } },
EMP = { asset = "scr_xs_dr", fx = { "scr_xs_dr_emp" } },
Core = { asset = "core", fx = { "veh_sub_crush" } },
GolfTrail = { asset = "scr_powerplay", fx = { "sp_powerplay_beast_appear_trails" } },
}
--========================================================
-- Aura Particle Emitters (bone-attached FX)
--========================================================
Config.AuraParticlesList = {
-- Upper body (primary color)
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = -0.1, zOffset = 0.0, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x6E5C, Scale = 0.3, Color = Config.ParticleRGB, Alpha = 1.0 }, -- Right Upperarm
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = -0.1, zOffset = 0.0, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0xEEEB, Scale = 0.3, Color = Config.ParticleRGB, Alpha = 1.0 }, -- Left Upperarm
-- Lower body (secondary color)
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = -0.2, yOffset = -0.15, zOffset = 0.0, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x2E28, Scale = 0.6, Color = Config.ParticleRGB2, Alpha = 1.0 }, -- Pelvis
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = 0.0, zOffset = 0.1, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x9000, Scale = 0.6, Color = Config.ParticleRGB2, Alpha = 1.0 }, -- Right Leg
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = 0.0, zOffset = -0.1, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0xF9BB, Scale = 0.6, Color = Config.ParticleRGB2, Alpha = 1.0 }, -- Left Leg
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = 0.0, zOffset = 0.12, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x2E28, Scale = 0.5, Color = Config.ParticleRGB2, Alpha = 1.0 }, -- Pelvis Right
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_gunsmith_weap_smoke",
xOffset = 0.0, yOffset = 0.0, zOffset = -0.12, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x2E28, Scale = 0.5, Color = Config.ParticleRGB2, Alpha = 1.0 }, -- Pelvis Left
-- Lightning aura
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_trail_lightning",
xOffset = 0.0, yOffset = -1.35, zOffset = 0.7, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x0, Scale = 2.0, Color = Config.ParticleRGB2, Alpha = 0.2 },
{ FxAsset = "scr_bike_adversary", Fx = "scr_adversary_trail_lightning",
xOffset = 0.0, yOffset = -1.35, zOffset = 0.7, xRot = 0.0, yRot = 0.0, zRot = 0.0,
Bone = 0x0, Scale = 2.0, Color = Config.ParticleRGB, Alpha = 0.05 },
}
--========================================================
-- Speed Trail Particles
--========================================================
Config.SpeedTrailParticles = {
{ -- Right Foot
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 14201, -- 0x3779
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB.r,
g = Config.ParticleTrailRGB.g,
b = Config.ParticleTrailRGB.b,
a = 1.0,
},
},
{ -- Left Foot
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 52301, -- 0xCC4D
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB.r,
g = Config.ParticleTrailRGB.g,
b = Config.ParticleTrailRGB.b,
a = 1.0,
},
},
{ -- Right Calf
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 57597, -- 0xE0FD
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB.r,
g = Config.ParticleTrailRGB.g,
b = Config.ParticleTrailRGB.b,
a = 1.0,
},
},
{ -- Left Calf
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 24816, -- 0x60F0
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB.r,
g = Config.ParticleTrailRGB.g,
b = Config.ParticleTrailRGB.b,
a = 1.0,
},
},
{ -- Right Knee
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 31086, -- 0x796E
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB2.r,
g = Config.ParticleTrailRGB2.g,
b = Config.ParticleTrailRGB2.b,
a = 1.0,
},
},
{ -- Left Knee
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 24818, -- 0x60F2
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB2.r,
g = Config.ParticleTrailRGB2.g,
b = Config.ParticleTrailRGB2.b,
a = 1.0,
},
},
{ -- Right Thigh
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 18905, -- 0x49D9
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB2.r,
g = Config.ParticleTrailRGB2.g,
b = Config.ParticleTrailRGB2.b,
a = 1.0,
},
},
{ -- Hips
dict = "scr_powerplay",
fx = "sp_powerplay_beast_appear_trails",
bone = 57005, -- 0xDEAD
offset = vector3(0.0, 0.0, 0.0),
rotation = vector3(0.0, 0.0, 0.0),
scale = 0.50,
color = {
r = Config.ParticleTrailRGB2.r,
g = Config.ParticleTrailRGB2.g,
b = Config.ParticleTrailRGB2.b,
a = 1.0,
},
},
}
Framework bridge
Two files ship open specifically so you can adapt the resource to a non-standard setup without touching anything else. Out of the box they cover QBCore, QBox and ESX — if your server already works, leave them alone.
server/bridge.lua
The only file that talks to your framework, your inventory and your notification system.
| Function | Must return / do |
|---|---|
Detect() | Identify the framework and cache its core object |
GetCharacterId(src) | A stable unique string for the player's current character. Everything saves against this |
RemoveItem(src, item) | Remove one of that item from the player's inventory |
RegisterUsableItem(item, cb) | Make using that item run cb(src) |
Notify(src, msg, type) | Show a short message to one player |
IsAdmin(src) | true if the player may run admin commands |
If GetCharacterId returns a value that changes between sessions, players appear to lose their powers. If it is not unique per character, multicharacter players will share one hero.
Example — ox_inventory
function OrbitBridge.RemoveItem(src, itemName) exports.ox_inventory:RemoveItem(src, itemName, 1) end
Example — ox_lib notifications
function OrbitBridge.Notify(src, msg, ntype) TriggerClientEvent('ox_lib:notify', src, { description = msg, type = ntype or 'inform' }) end
client/bridge.lua
Heroes run on a health pool far larger than GTA's built-in maximum, and medical scripts do not know that. This file teaches the resource about your death and revive system.
ReviveEvents— event names meaning "this player was revived". When one fires, the full hero health pool is restored. Add your medical script's event to the list; names that never fire are harmless.IsDowned()— must returntruewhile the player is dead, bleeding out or in last stand.
Edit these if health does not return correctly after a revive, or if powers stay active while downed.
Script API
Any resource on your server can read and change hero state. Call with exports['orbit_superpowers']:FunctionName(args).
Server exports
| Function | Returns / effect |
|---|---|
IsHero(src) | true if the player is a registered hero |
RegisterHero(src) | Registers the player, creating the DB row |
GetPlayerStats(src) | { level, xp, xp_to_next, max_health, max_energy } |
GetLevel(src) | Current hero level |
GrantXP(src, amount) | Adds XP and handles level-ups and stat scaling |
RemoveXP(src, amount) | Removes XP without de-levelling |
SetXP(src, amount) | Sets XP to an exact value |
SetLevel(src, level) | Sets level, resets XP, rescales stats |
SetMaxHealth(src, n) | Sets the health pool directly |
SetMaxEnergy(src, n) | Sets the energy pool directly |
GrantPowerById(src, powerId) | Grants a power by its ID string |
RevokePowerById(src, powerId) | Revokes a power by its ID string |
enablePowers(src, level) | Turns powers on at a permission level |
disablePowers(src) | Turns powers off |
selectPower(src, power) | Sets the active selected power |
Client exports
| Function | Returns / effect |
|---|---|
GetData() | The shared state table — stats, flags, root object |
IsFlying() | true while in flight |
HasAbility(powerId) | true if that power is in the active build |
GetEnergy() | Current energy charge |
DrainEnergy(amount) | Deducts energy; false if insufficient |
SetEnergyLevel(amount) | Sets energy to an absolute value |
CanUsePower() | true if a power may be activated right now |
Example — reward a power on mission completion
exports['orbit_superpowers']:GrantPowerById(src, 'FLIGHT') exports['orbit_superpowers']:GrantXP(src, 2500)
Example — gate an action behind hero level
local level = exports['orbit_superpowers']:GetLevel(src) if level < 25 then -- not strong enough yet return end
Built-in protections
- Server-side validation on every hit. When one player hits another with an EMP, melee strike or super punch, the server independently confirms both players exist, that the attacker genuinely has powers and permission, and that they are close enough for the hit to be real. Direction vectors are re-normalised server-side so a tampered client cannot send something that breaks the receiving player.
- Clean death handling. Dying shuts down flight, speed, auras, trails, particles and any active power at once, then resets. No stuck effects, no invisible players, no leftover props.
- Stun immunity flag. If a player, boss NPC or staff member needs to be un-stunnable, there is a switch for it.
Expansion packs
The base resource is the foundation. A library of official themed packs is rolling out over the next few weeks and months — Fire, Earth, Water, Void, Speedster, Support & Healing, Advanced Melee and more.
Each pack installs as its own resource and adds abilities straight into the wheel your players already use, sharing the same builder, cooldowns and energy system. No migration, no reconfiguring, and no waiting on a base-script update — install, restart, and the new powers are there.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| No sound at all | Step 1 of the install was skipped, or the files landed in the wrong place. They must sit directly in orbit_sounds/ui/sounds/. |
| Using a power item does nothing | Config.ItemSystem.enabled is false, or the items were never added to your framework's item list. |
| Powers will not turn on | The player is not a registered hero yet. Grant them any power, or run /registerhero <id>. |
| Errors mentioning orbit_target | orbit_target is not running. It must start before orbit_superpowers in your server.cfg. |
| Health resets to 200 after a revive | Your medical script's revive event is not in the list. Add it to ReviveEvents in client/bridge.lua. |
| Players lose powers between sessions | GetCharacterId is returning an unstable value. Check it against your framework in server/bridge.lua. |
| Powers stay active while downed | Your downed state is not detected. Add your flag to IsDowned() in client/bridge.lua. |