FreezePlayerTime

From GT-MP
Jump to: navigation, search
FreezePlayerTime
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Freezes or unfreezes the world time for the given player.


Syntax

API.freezePlayerTime(Client client, bool freeze);

Required Arguments

  • client: parameter input should be in Client type.
  • freeze: parameter input should be in bool type.

Usage example(s)

[Command("freezetime")]
public void FreezeTimeCommand(Client sender, bool frozen)
{
  API.freezePlayerTime(sender, frozen);
}

References