Scripting/Squirrel/Events/Game/onTimeChange

From VC-MP Wiki

Jump to: navigation, search

This event is called when the time in the server changes.

Syntax

function onTimeChange( hour, minute )

Parameters

  • hour - The new hour
  • minute - The new minute

Example

This example will print the server time to the console.

function onTimeChange( hr, min )
{
     print( "Server Time: " + hr + ":" + min );
}

Related Events

Personal tools
squirrel scripting