SetEntityDimension

From GTA Network Wiki
Jump to: navigation, search

SetEntityDimension
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This method changes player's dimension. For more info about them see Dimensions.

Syntax

void NAPI.Entity.SetEntityDimension(NetHandle entity, uint dimension);

Required Arguments

  • entity: parameter input should be in NetHandle type.
  • dimension: parameter input should be in uint type.

Usage example(s)

Global dimension

// Player is now inside the global dimension
NAPI.Entity.SetEntityDimension(player, NAPI.GlobalDimension);

Private dimension

// Player is now inside a dimension 2
NAPI.Entity.SetEntityDimension(player, 2);

Changelog

Version Description
1.0 Release.

References