ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineSetModelVisibleTime

Function

engineSetModelVisibleTime

ClientGame engineIdentical to MTA:SA

Sets the game hours (0-24) when objects of this model from createObject are visible; outside them they are hidden. From > to means across midnight (e.g. 20 and 6 = at night), 0 and 24 = always.

Syntax

bool engineSetModelVisibleTime(int modelID, int hourOn, int hourOff)

Arguments

modelIDint
The model.
hourOnint
From hour.
hourOffint
To hour.

Returns

true on success.

Example

Script-placed lamps visible only at night.

engineSetModelVisibleTime(1226, 20, 6)

See also