Hooks/Server/onDoorRamUsed

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

Parameters

  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

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