Types: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:Types}}
{{DISPLAYTITLE:Types}}
This page hosts a list of used [https://en.wikipedia.org/wiki/Data_type data types] for scripting.


This page hosts a list of used [https://en.wikipedia.org/wiki/Data_type data types ]for scripting.
==Abstract Base Types==
 
==Abstract base types==
These types aren't used directly in Scripting. They just represent abstract types used behind the scenes.
These types aren't used directly in Scripting. They just represent abstract types used behind the scenes.


Line 11: Line 10:
These types are used in Scripting.
These types are used in Scripting.


* {{Side|client=1}} <code>RenderTarget</code> - client representation - Derives from <code>Surface</code>
* {{Side|shared=1}} <code>Client</code> - client representation
* {{Side|client=1}} <code>Texture</code> - texture - Derives from <code>Surface</code>
* {{Side|client=1}} <code>Sound</code>
* {{Side|server=1}} <code>World</code> - the world
* {{Side|shared=1}} <code>Client</code> - client representation  
* {{Side|shared=1}} <code>Effect</code> - effect (FX)
* {{Side|shared=1}} <code>Effect</code> - effect (FX)
* {{Side|shared=1}} <code>Event</code> - event
*  {{Side|shared=1}} <code>Element</code> - element
* {{Side|shared=1}} <code>Font</code> - font
* {{Side|shared=1}} <code>Timer</code> - timer
* {{Side|shared=1}} <code>ReflectedFunction</code> - reflected function
* {{Side|shared=1}} <code>Resource</code> - resource
* {{Side|shared=1}} <code>Stream</code>
* {{Side|shared=1}} <code>Vec2</code> - vector of 2 numbers
* {{Side|shared=1}} <code>Vec3</code> - vector of 3 numbers
* {{Side|shared=1}} <code>Matrix4x4</code> - matrix of 4 by 4 numbers
*  {{Side|shared=1}}<code>Element</code> - element
** {{Side|shared=1}} <code>Transformable</code> - (2D / 3D) positionable element
** {{Side|shared=1}} <code>Transformable</code> - (2D / 3D) positionable element
*** {{Side|client=1}} <code>Marker</code> - marker
*** {{Side|shared=1}} <code>Blip</code> - blip
*** {{Side|shared=1}} <code>Blip</code> - blip
*** {{Side|shared=1}} <code>Pickup</code> - pickup
*** {{Side|shared=1}} <code>Entity</code> - entity
*** {{Side|shared=1}} <code>Entity</code> - entity
**** {{Side|client=1}} <code>Building</code> - building (GTA Building)
**** {{Side|client=1}} <code>Building</code> - building (GTA Building)
Line 36: Line 20:
***** {{Side|client=1}} <code>Object</code> - placeable object
***** {{Side|client=1}} <code>Object</code> - placeable object
***** {{Side|client=1}} <code>Ped</code> - pedestrian
***** {{Side|client=1}} <code>Ped</code> - pedestrian
****** {{Side|client=1}} <code>Civilian</code> - civilian
****** {{Side|client=1}} <code>Player</code> - player
****** {{Side|client=1}} <code>Player</code> - player
***** {{Side|shared=1}} <code>Vehicle</code> - any vehicle
***** {{Side|shared=1}} <code>Vehicle</code> - any vehicle
****** {{Side|server=1}} <code>Train</code> - train
****** {{Side|server=1}} <code>Train</code> - train
*** {{Side|client=1}} <code>Marker</code> - marker
*** {{Side|shared=1}} <code>Pickup</code> - pickup
* {{Side|shared=1}} <code>Event</code> - event
* {{Side|shared=1}} <code>Font</code> - font
* {{Side|shared=1}} <code>Matrix4x4</code> - matrix of 4 by 4 numbers
* {{Side|shared=1}} <code>ReflectedFunction</code> - reflected function
* {{Side|shared=1}} <code>Resource</code> - resource
* {{Side|client=1}} <code>Sound</code>
* {{Side|shared=1}} <code>Stream</code>
* {{Side|client=1}} <code>Surface</code>
** {{Side|client=1}} <code>RenderTarget</code> - client representation - derives from <code>Surface</code>
** {{Side|client=1}} <code>Texture</code> - texture - derives from <code>Surface</code>
* {{Side|shared=1}} <code>Timer</code> - timer
* {{Side|shared=1}} <code>Vec2</code> - vector of 2 numbers
* {{Side|shared=1}} <code>Vec3</code> - vector of 3 numbers
* {{Side|server=1}} <code>World</code> - the world


{{InformationBox|1=
{{InformationBox|1=
Line 175: Line 174:
|Server-side
|Server-side
|}
|}
==Previous Versions==
Type <code>Civilian</code> was removed. All functionality from type <code>Civilian</code>was moved to type <code>Ped</code>.

Revision as of 19:31, 5 October 2021

This page hosts a list of used data types for scripting.

Abstract Base Types

These types aren't used directly in Scripting. They just represent abstract types used behind the scenes.

  • Surface - Anything that is drawable (RenderTarget, Texture)

Type Inheritance

These types are used in Scripting.

  • Shared Client - client representation
  • Shared Effect - effect (FX)
  • Shared Element - element
    • Shared Transformable - (2D / 3D) positionable element
      • Shared Blip - blip
      • Shared Entity - entity
        • Client Building - building (GTA Building)
        • Shared Physical - object that interacts with physics
          • Client Object - placeable object
          • Client Ped - pedestrian
            • Client Player - player
          • Shared Vehicle - any vehicle
            • Server Train - train
      • Client Marker - marker
      • Shared Pickup - pickup
  • Shared Event - event
  • Shared Font - font
  • Shared Matrix4x4 - matrix of 4 by 4 numbers
  • Shared ReflectedFunction - reflected function
  • Shared Resource - resource
  • Client Sound
  • Shared Stream
  • Client Surface
    • Client RenderTarget - client representation - derives from Surface
    • Client Texture - texture - derives from Surface
  • Shared Timer - timer
  • Shared Vec2 - vector of 2 numbers
  • Shared Vec3 - vector of 3 numbers
  • Server World - the world
Blip : Transformable : Element
Building : Entity : Transformable : Element
Civilian : Ped : Physical : Entity : Transformable : Element
Marker : Transformable : Element
Object : Physical : Entity : Transformable : Element
Pickup : Transformable : Element
Player : Ped : Physical : Entity : Transformable : Element
Train : Vehicle : Physical : Entity : Transformable : Element

Type List

This is a list of all types used by GTAC scripting.

Type Inherited Type Endpoint
Blip Transformable Shared
Building Entity Client-side
Civilian Ped Client-side
Client - Shared
Effect - Client-side
Element - Shared
Entity Transformable Shared
Event - Shared
Font - Client-side
Marker Transformable Client-side
Matrix4x4 - Shared
Object Physical Client-side
Ped Physical Client-side
Physical Entity Shared
Pickup Transformable Client-side
Player Ped Client-side
ReflectedFunction - Shared
RenderTarget - Client-side
Resource - Shared
Sound - Client-side
Stream - Shared
Texture - Client-side
Timer - Shared
Train Vehicle Server-side
Transformable Element Shared
Vec2 - Shared
Vec3 - Shared
Vehicle Phsyical Shared
World - Server-side

Previous Versions

Type Civilian was removed. All functionality from type Civilianwas moved to type Ped.