Create2DColShape

From GTA Network Wiki
Jump to: navigation, search

Create2DColShape
Server-Side Function

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

Creates a 2D collision shape which checks whether an entity is inside of a rectangular area, where height does not count.

Syntax

ColShape NAPI.ColShape.Create2DColShape(float x, float y, float width, float height, uint dimension = NAPI.GlobalDimension);

Required Arguments

  • x: parameter input should be in float type.
  • y: parameter input should be in float type.
  • width: parameter input should be in float type.
  • height: parameter input should be in float type.

Optional Arguments

  • dimension: parameter input should be in uint type.

NOTE: This function returns data in ColShape type.

Usage example(s)

ColShape shape = NAPI.ColShape.Create2DColShape(100.0f, 100.0f, 50.0f, 50.0f);

Changelog

Version Description
1.0 Release.

References