FreezePlayerTime

From GTA Network Wiki
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

void NAPI.Player.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)
{
  NAPI.Player.FreezePlayerTime(sender, frozen);
}

Changelog

Version Description
1.0 Release.

References