GM:FindUseEntity
Description
This hook polls the entity the player use action should be applied to.
Use Player:GetUseEntity to get the final result of this hook.
The default behavior of this hook is in CBasePlayer::FindUseEntity. Despite
CBasePlayer::FindUseEntity being defined shared, it is only called serverside in practice, so this hook will be only called serverside, as well. It is possible for modules to call it clientside, so the Lua code should still be treated as shared.
Garry's Mod
Rust
Steamworks
Wiki Help