From Multi Theft Auto: Wiki
Revision as of 18:13, 2 October 2011 by Arran Fortuna (talk | contribs)
Jump to navigation Jump to search

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

Please use isElementFrozen

This function retrieves whether the pedestrian is frozen or not.


bool isPedFrozen ( ped thePed )

Required Arguments

  • thePed: The ped whose frozen state will be obtained.


Returns a bool indicating the pedestrians frozen state, or false if invalid arguments were passed.


This example adds a 'togglefreeze' console command that lets players alternate their frozen state.

function toggleFreeze ( sourcePlayer )
    setPedFrozen ( sourcePlayer, not isPedFrozen ( sourcePlayer ) )
addCommandHandler ( "togglefreeze", toggleFreeze )

See Also