- Documentation
- Server functions
- getControlState
Function
getControlState
Returns the control state set with setControlState.
Syntax
bool getControlState(player thePlayer, string control)Arguments
thePlayerplayer- The player.
controlstring- The control name.
Returns
true when the control is pressed.
Example
if getControlState(player, "accelerate") then
outputChatBox("Tempomat włączony", player)
end