Hooks/Server/canTaxEntity

From DarkRP
Jump to navigation Jump to search
Hook
Hook name canTaxEntity(Player ply, Entity ent)
Description:
Called right before a player's property is taxed. Decides per entity whether it can be taxed.
Returns: boolean shouldTax
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canTaxEntity]canTaxEntity hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player whose property will be taxed.

  3. ent (Entity)
  4. The door or vehicle that is to be taxed

Return values[edit]

  1. shouldTax (boolean)
  2. Return false here to prevent this specific entity from being taxed.