Hooks/Server/onDoorRamUsed

From DarkRP
Hook
Hook name onDoorRamUsed(boolean success, Player ply, table trace)
Description:
Called when the door ram has been used.
Returns: nil
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onDoorRamUsed]onDoorRamUsed hook[/url][/b]

Parameters[edit]

  1. success (boolean)
  2. Whether the door ram has been successful in ramming.

  3. ply (Player)
  4. The player that used the door ram.

  5. trace (table)
  6. The trace containing information about the hit position and ram entity.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.