Scripting/Squirrel/Functions/Game/GetMinute
From VC-MP Wiki
This returns the current minute in the server.
Syntax
int GetMinute()
Arguments
- None
Example
This example will tell the player the current time when they type '/c time'.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "time" ) { MessagePlayer( "Current time: " + GetHour() + ":" + GetMinute(), player ); } }
Notes
The functions MessagePlayer, GetHour and call onPlayerCommand were used in in this example. More info about them in corresponding pages.
Related Functions
- GetHour
- SetHour
- GetMinute
- SetMinute
- SetTime
- GetTimeRate
- SetTimeRate
- GetWeather
- SetWeather
- GetWeatherRate
- SetWeatherRate
- GetWeatherLock
- SetWeatherLock
- SetAmmuWeapon
- IsAmmuWeaponEnabled
- SetAmmuWeaponEnabled
- CreateMarker
- CreateMarkerForPlayer
- GetWeaponSync
- SetWeaponSync
- GetGravity
- SetGravity
- GetGamespeed
- SetGamespeed
- GetWaterLevel
- SetWaterLevel
