Hooks hooksserver
Part of Player Search
Hooks called by Player Search
Summary
Hooks
CanSearch(actor, target)server
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
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
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