Skip to content

GetPlayerPromptFor

The use prompt one viewer alone sees over a player (SetPlayerPromptFor).

GetPlayerPromptFor(viewer, pid)
Parameter Type
viewer number the player who sees it
pid number the player it hangs over

string | nil - the viewer’s own prompt; nil when they see everyone’s

if GetPlayerPromptFor(guard, pid) == "Arrest" then SendClientMessage(guard, COLOR_RED, "Wanted!") end

SetPlayerPromptFor · the Players group of the index