GetPlayerPromptFor
The use prompt one viewer alone sees over a player (SetPlayerPromptFor).
Syntax
Section titled “Syntax”GetPlayerPromptFor(viewer, pid)| Parameter | Type | |
|---|---|---|
viewer |
number | the player who sees it |
pid |
number | the player it hangs over |
Returns
Section titled “Returns”string | nil - the viewer’s own prompt; nil when they see everyone’s
Example
Section titled “Example”if GetPlayerPromptFor(guard, pid) == "Arrest" then SendClientMessage(guard, COLOR_RED, "Wanted!") endSee also
Section titled “See also”SetPlayerPromptFor · the Players group of the index
