Hooks called by Player Search

Summary

Hooks

Called when a player asks to search another player, when the searched player allows the search and every second while it lasts.
Called when a player asks to search another player, before the request reaches them.

Hooks

CanSearch(actor, target)

server plugins/playersearch/plugin/sv_hooks.lua:63

Called when a player asks to search another player, when the searched player allows the search and every second while it lasts.

Parameters

  • actor Player player doing the search
  • target Player player being searched

Returns

  • Boolean false to refuse or end the search
  • String error phrase shown to the searcher

Called from

Call sites

CanStartSearch(actor, target)

server plugins/playersearch/plugin/sv_nethooks.lua:12

Called when a player asks to search another player, before the request reaches them.

Parameters

  • actor Player player asking for the search
  • target Player player to search

Returns

  • Boolean false to refuse the request
  • String error phrase shown to the player

Call sites

Defined in