← Previous | Next →
OBJECT
Description
Creates an object in the world that can be interacted with a defined behaviour tree.
Attributes
Attribute name
| Name |
Required |
Description |
Parameters |
| name |
Yes |
The name of the object and ID. |
1 |
Parameters of name
| # |
Name |
Type |
Description |
Multiple |
| 1 |
Name |
String |
The name of the object https://gtahash.ru/ |
No |
Attribute model
| Name |
Required |
Description |
Parameters |
| model |
Yes |
The model of the object. |
1 |
Parameters of model
| # |
Name |
Type |
Description |
Multiple |
| 1 |
Model |
String |
The model of the object. |
No |
Attribute position
| Name |
Required |
Description |
Parameters |
| position |
Yes |
The position of the object. |
4 |
Parameters of position
| # |
Name |
Type |
Description |
Multiple |
| 1 |
X |
Number |
The X position of the object. |
No |
| 2 |
Y |
Number |
The Y position of the object. |
No |
| 3 |
Z |
Number |
The Z position of the object. |
No |
| 4 |
Heading |
Number |
The heading of the object. |
No |
Attribute floating
| Name |
Required |
Description |
Parameters |
| floating |
No |
The offset of the floating message. |
3 |
Parameters of floating
| # |
Name |
Type |
Description |
Multiple |
| 1 |
X |
Number |
The X offset of the floating message. |
No |
| 2 |
Y |
Number |
The Y offset of the floating message. |
No |
| 3 |
Z |
Number |
The Z offset of the floating message. |
No |
Attribute marker
| Name |
Required |
Description |
Parameters |
| marker |
No |
The marker of the object. |
20 |
Parameters of marker
| # |
Name |
Type |
Description |
Multiple |
| 1 |
Model number |
Number |
The model number as defined in FiveM https://docs.fivem.net/docs/game-references/markers/ |
No |
| 2 |
X |
Number |
The X position of the marker. |
No |
| 3 |
Y |
Number |
The Y position of the marker. |
No |
| 4 |
Z |
Number |
The Z position of the marker. |
No |
| 5 |
ScaleX |
Number |
The X scale of the marker. |
No |
| 6 |
ScaleY |
Number |
The Y scale of the marker. |
No |
| 7 |
ScaleZ |
Number |
The Z scale of the marker. |
No |
| 8 |
DirX |
Number |
The X direction of the marker. |
No |
| 9 |
DirY |
Number |
The Y direction of the marker. |
No |
| 10 |
DirZ |
Number |
The Z direction of the marker. |
No |
| 11 |
RotX |
Number |
The X rotation of the marker. |
No |
| 12 |
RotY |
Number |
The Y rotation of the marker. |
No |
| 13 |
RotZ |
Number |
The Z rotation of the marker. |
No |
| 14 |
R |
Number 0-255 |
The R color of the marker. |
No |
| 15 |
G |
Number 0-255 |
The G color of the marker. |
No |
| 16 |
B |
Number 0-255 |
The B color of the marker. |
No |
| 17 |
A |
Number 0-255 |
The A color of the marker. |
No |
| 18 |
upAndDown |
Boolean |
The up and down of the marker. |
No |
| 19 |
faceCamera |
Boolean |
The face camera of the marker. |
No |
| 20 |
rotate |
Boolean |
The rotate of the marker. |
No |
Attribute blip
| Name |
Required |
Description |
Parameters |
| blip |
No |
The blip of the object. |
3 |
Parameters of blip
| # |
Name |
Type |
Description |
Multiple |
| 1 |
Name |
String |
The name of the blip in the map. |
No |
| 2 |
Sprite |
Number |
The sprite of the blip as defined in https://docs.fivem.net/docs/game-references/blips/#blips. |
No |
| 3 |
Color |
Number |
The color of the blip as defined in https://docs.fivem.net/docs/game-references/blips/#blip-colors. |
No |
Attribute interaction
| Name |
Required |
Description |
Parameters |
| interaction |
Yes |
The interaction behaviour tree of the object. |
1 |
Parameters of interaction
| # |
Name |
Type |
Description |
Multiple |
| 1 |
InteractionBehaviourTree |
BehaviourTree |
The interaction tree of the object. |
No |
Example
OBJECT
name "Secret Note"
model prop_cliff_paper
position -1047.82 4829.44 246.15 0.0
interaction
tell "The treasure is hidden in the cave."