Types: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
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. | ||
== | ==Types== | ||
These types | These types are used in Scripting.<br> | ||
A <code>Shared</code>type means that the type is available to be used on both the server and the client in scripting.<br><br> | |||
* {{Side|shared=1}} <code>Client</code> - client representation | * {{Side|shared=1}} <code>Client</code> - client representation | ||
* {{Side| | * {{Side|client=1}} <code>Effect</code> - effect (FX) | ||
* {{Side|shared=1}} <code>Element</code> - element | * {{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|shared=1}} <code>Blip</code> - blip | *** {{Side|shared=1}} <code>Blip</code> - blip | ||
*** {{Side|shared=1}} <code>Entity</code> - entity | *** {{Side|shared=1}} <code>Entity</code> - entity | ||
**** {{Side| | **** {{Side|shared=1}} <code>Building</code> - building (GTA Building) | ||
**** {{Side|shared=1}} <code>Physical</code> - object that interacts with physics | **** {{Side|shared=1}} <code>Physical</code> - object that interacts with physics | ||
***** {{Side| | ***** {{Side|shared=1}} <code>Object</code> - placeable object | ||
***** {{Side| | ***** {{Side|shared=1}} <code>Ped</code> - pedestrian | ||
****** {{Side| | ****** {{Side|shared=1}} <code>Player</code> - player | ||
***** {{Side|shared=1}} <code>Vehicle</code> - any vehicle | ***** {{Side|shared=1}} <code>Vehicle</code> - any vehicle | ||
****** {{Side| | ****** {{Side|shared=1}} <code>Train</code> - train | ||
*** {{Side| | *** {{Side|shared=1}} <code>Marker</code> - marker | ||
*** {{Side|shared=1}} <code>Pickup</code> - pickup | *** {{Side|shared=1}} <code>Pickup</code> - pickup | ||
* {{Side|shared=1}} <code>Event</code> - event | * {{Side|shared=1}} <code>Event</code> - event | ||
* {{Side|shared=1}} <code>Font</code> - font | ** {{Side|shared=1}} <code>CancellableEvent</code> - cancellable event | ||
** {{Side|shared=1}} <code>KeyEvent</code> - key vent | |||
* {{Side|client=1}} <code>Font</code> - font | |||
* {{Side|shared=1}} <code>Matrix4x4</code> - matrix of 4 by 4 numbers | * {{Side|shared=1}} <code>Matrix4x4</code> - matrix of 4 by 4 numbers | ||
* {{Side|shared=1}} <code>ReflectedFunction</code> - reflected function | * {{Side|shared=1}} <code>ReflectedFunction</code> - reflected function | ||
Line 38: | Line 36: | ||
* {{Side|shared=1}} <code>Vec2</code> - vector of 2 numbers | * {{Side|shared=1}} <code>Vec2</code> - vector of 2 numbers | ||
* {{Side|shared=1}} <code>Vec3</code> - vector of 3 numbers | * {{Side|shared=1}} <code>Vec3</code> - vector of 3 numbers | ||
* {{Side| | * {{Side|shared=1}} <code>XmlDocument</code> - xml document | ||
* {{Side|shared=1}} <code>XmlElement</code> - xml element | |||
==Types Derived From Element== | |||
Types derived from type Element, as shown in the list above. | |||
{{InformationBox|1= | {{InformationBox|1= | ||
Blip : Transformable : Element | Blip : Transformable : Element | ||
Building : Entity : Transformable : Element | Building : Entity : Transformable : Element | ||
Marker : Transformable : Element | Marker : Transformable : Element | ||
Object : Physical : Entity : Transformable : Element | Object : Physical : Entity : Transformable : Element | ||
Line 50: | Line 52: | ||
Train : Vehicle : Physical : Entity : Transformable : Element}} | Train : Vehicle : Physical : Entity : Transformable : Element}} | ||
== | ==Abstract Base Types== | ||
These types aren't used directly in Scripting. They just represent abstract types used behind the scenes. | |||
* <code>Surface</code> - Anything that is drawable (<code>RenderTarget</code>, <code>Texture</code>) | |||
==Previous Versions== | ==Previous Versions== | ||
Type <code>Civilian</code> was removed. All functionality from type <code>Civilian</code>was moved to type <code>Ped</code>. | Type <code>Civilian</code> was removed. All functionality from type <code>Civilian</code>was moved to type <code>Ped</code>. |
Revision as of 20:16, 5 October 2021
This page hosts a list of used data types for scripting.
Types
These types are used in Scripting.
A Shared
type means that the type is available to be used on both the server and the client in scripting.
Shared
Client
- client representationClient
Effect
- effect (FX)Shared
Element
- elementShared
Transformable
- (2D / 3D) positionable elementShared
Blip
- blipShared
Entity
- entityShared
Building
- building (GTA Building)Shared
Physical
- object that interacts with physicsShared
Object
- placeable objectShared
Ped
- pedestrianShared
Player
- player
Shared
Vehicle
- any vehicleShared
Train
- train
Shared
Marker
- markerShared
Pickup
- pickup
Shared
Event
- eventShared
CancellableEvent
- cancellable eventShared
KeyEvent
- key vent
Client
Font
- fontShared
Matrix4x4
- matrix of 4 by 4 numbersShared
ReflectedFunction
- reflected functionShared
Resource
- resourceClient
Sound
Shared
Stream
Client
Surface
Client
RenderTarget
- client representation - derives fromSurface
Client
Texture
- texture - derives fromSurface
Shared
Timer
- timerShared
Vec2
- vector of 2 numbersShared
Vec3
- vector of 3 numbersShared
XmlDocument
- xml documentShared
XmlElement
- xml element
Types Derived From Element
Types derived from type Element, as shown in the list above.
Blip : Transformable : Element
Building : 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
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
)
Previous Versions
Type Civilian
was removed. All functionality from type Civilian
was moved to type Ped
.