Impact Dynamics / Features

Sweeping debris

Allowed players can clean a crash site up themselves.

  1. Walk up to a debris field and use the ox_target option Sweep up the debris.
  2. A broom appears in your hands and you walk with a sweeping animation.
  3. Every piece the broom head reaches is swept aside and gone for everyone.
  4. Once most of the field is gone (75 % by default), the rest goes too and you get "Road cleared."

While sweeping, a prompt shows [E] Stop sweeping with how many pieces are left nearby ("This spot is clean" when none). Stop with E (players can rebind it in Settings > Key Bindings > FiveM). Sweeping also stops when you get in a car, fall over, die, swim, are cuffed, or sweep nothing for 60 seconds ("You put the broom away.").

Who may sweep

  • Players with one of the jobs in Config.Debris.Sweep.Groups (minimum grade; on duty on qbx_core / qb-core).
  • Or anyone carrying the item set in Config.Debris.Sweep.Item (for example a broom).
  • Without a framework: the ace impactdynamics.sweep.

The server checks this again on every start, and limits how many pieces anyone can sweep per stroke.

A swept field fires the server event ryan-impactdynamics:fieldSwept - use it to pay a tow / fire crew, see Dispatch, logs & hooks.

i

Sweeping needs ox_target. Without it, fields still fade out by themselves over time.

Configure it in Sweeping.

Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.