Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.
Class to manipulate the game world.
Name | Type | Description |
---|---|---|
weather | number | weather id (TODO: link weather types) |
weatherVisible | boolean | |
moonColor | RGBA | RGBA color of the moon |
sunPosition | Vector2f | 2D position of the sun |
sunHDRScale | number | |
sunColor | RGBA | RGBA color of the sun |
time | TimeOfDay | read only |
Sets the local world time
Name | Type | Description |
---|---|---|
hour | number | hour (0-24) |
minute | number | minute (0-60) |
p3 | number |
resets the suns position
By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.