Types: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
** {{Side|shared=1}} <code>KeyEvent</code> - key vent | ** {{Side|shared=1}} <code>KeyEvent</code> - key vent | ||
* {{Side|client=1}} <code>Font</code> - font | * {{Side|client=1}} <code>Font</code> - font | ||
* {{Side|client=1}} <code>GUIElement</code> - gui element | |||
* {{Side|client=1}} <code>GUIHtmlElement</code> - gui html element | |||
* {{Side|client=1}} <code>GUIHtmlView</code> - gui html view | |||
* {{Side|client=1}} <code>GUIPage</code> - gui page | |||
* {{Side|client=1}} <code>GUIWindow</code> - gui window | |||
* {{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 |
Revision as of 20:25, 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
- fontClient
GUIElement
- gui elementClient
GUIHtmlElement
- gui html elementClient
GUIHtmlView
- gui html viewClient
GUIPage
- gui pageClient
GUIWindow
- gui windowShared
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
.