Dimensions
A dimension is a numeric virtual world. Players see and interact only with entities in the same dimension; the default is 0.
ts
const privateDimension = 1000 + player.id
player.dimension = privateDimension
const preview = vimp.vehicles.create(
vimp.hash('adder'),
100,
-1900,
21,
180,
{ dimension: privateDimension },
)Changing a player's dimension recomputes visibility. If the player is inside a vehicle, direct player dimension changes automatically remove that player from the vehicle. Changing a vehicle dimension instead cascades the new dimension to its occupants without ejecting them.
playerDimensionChange fires after the change and visibility work are complete, so handlers observe final state. Keep related temporary entities in the same dimension and destroy them when the instance ends.
Dimensions provide world isolation, not an authorization boundary. Continue to validate server-side permissions for custom events.