Skip to content

WorldManager

@vimp-mp/types 2.0.1

Interface · Server API

Authoritative server-side world state. Setting any value broadcasts the change to every connected client; new clients receive the current state during handshake.

Time values are normalised on write (hour % 24, minute|second % 60). weather is uppercased and trimmed; weather names match GTA V's SET_OVERRIDE_WEATHER strings (e.g. "EXTRASUNNY", "RAIN", "THUNDER").

ts
interface WorldManager

Members

hour

ts
hour: number

In-game hour, normalized to 0–23 on write.

minute

ts
minute: number

In-game minute, normalized to 0–59 on write.

second

ts
second: number

In-game second, normalized to 0–59 on write.

time

ts
readonly time: WorldTime

Fresh snapshot containing the current hour, minute and second.

weather

ts
weather: string

GTA weather name broadcast to connected clients.

VIMP developer documentation