ToggleAllControls

From Multi Theft Auto: Wiki
Revision as of 19:58, 6 July 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Enables or disables the use of a all gta controls for a specified player.

Syntax

bool toggleAllControls ( player thePlayer, bool enabled ) 

Required Arguments

  • thePlayer: The player you wish to toggle the control ability of.
  • enable: A boolean value representing whether or not the controls will be usable or not.

Example

This function will disable the use of all controls for 5seconds, for a freeze function.

function freezeThisDude ( player, time )
  toggleAllControls ( player, false )
  setTimer ( "toggleAllControls", time, 1, player, true )
end

See Also