Installation
1. Add the resource
Put the ryan-impactdynamics folder in your server's resources folder. Keep the folder name as it is - other resources call its exports by that name.
2. Start it
In your server.cfg, ensure it after ox_lib (and after ox_target and your framework if you use them):
ensure ox_lib
ensure ox_target # optional
ensure qbx_core # or qb-core / es_extended - optional
ensure ryan-impactdynamics
3. Restart the server
The resource streams its debris props and animations. Do a full server restart (or at least have every player reconnect) the first time, so everyone downloads them. For later config changes restart ryan-impactdynamics works; on a busy server a full restart is the safer choice, as with any resource that streams files.
4. Set your jobs
Open config.lua and set the job names your server uses:
-- who may force a jammed door (job name = minimum grade, must be on duty)
Config.DoorJam.Force.Jobs = { police = 0, ambulance = 0, fire = 0 }
-- who may sweep debris
Config.Debris.Sweep.Groups = { police = 0, ambulance = 0, fire = 0, mechanic = 0, tow = 0 }
Running without a framework? Use ace permissions instead - see Frameworks & permissions:
add_ace group.police impactdynamics.force allow
add_ace group.police impactdynamics.sweep allow
5. Hook up your mechanic script
A repair should clear bent wheels, jammed doors and a wrecked engine. A full repair (SetVehicleFixed) is noticed by itself while someone drives the car, but your mechanic script should tell Impact Dynamics directly - see Mechanics & garages:
exports['ryan-impactdynamics']:RepairVehicle(vehicle)
6. Check the console
On start the server prints the framework it found:
[ryan-impactdynamics] framework: qbx_core
standalone means no framework was found and ace permissions are used.
Next: Your first test.