-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #792 from adib-yg/master
Added more 3DTextLabel/Player3DTextLabel documents
- Loading branch information
Showing
35 changed files
with
1,164 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Get3DTextLabelAttachedData | ||
description: Gets the 3D text label attached data. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label attached data. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the attached data of. | | ||
| &parentPlayerid | A variable into which to store the parentPlayerid, passed by reference. | | ||
| &parentVehicleid | A variable into which to store the parentVehicleid, passed by reference. | | ||
|
||
## Examples | ||
|
||
An example for parentPlayerid: | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new parentPlayerid; | ||
new parentVehicleid; | ||
|
||
gMyLabel = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, false); | ||
Attach3DTextLabelToPlayer(gMyLabel, playerid, 0.0, 0.0, 0.7); | ||
|
||
Get3DTextLabelAttachedData(gMyLabel, parentPlayerid, parentVehicleid); | ||
``` | ||
An example for parentVehicleid: | ||
```c | ||
new Text3D:gVehicle3dText[MAX_VEHICLES]; | ||
new gVehicleId; | ||
new parentPlayerid; | ||
new parentVehicleid; | ||
gVehicleId = CreateVehicle(510, 0.0, 0.0, 15.0, 5, 0, 120); | ||
gVehicle3dText[gVehicleId] = Create3DTextLabel("Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, false); | ||
Attach3DTextLabelToVehicle(gVehicle3dText[gVehicleId], gVehicleId, 0.0, 0.0, 2.0); | ||
Get3DTextLabelAttachedData(gVehicle3dText[gVehicleId], parentPlayerid, parentVehicleid); | ||
// The `parentVehicleid` will be the value of 'gVehicleId' | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [Attach3DTextLabelToPlayer](Attach3DTextLabelToPlayer): Attach a 3D text label to a player. | ||
- [Attach3DTextLabelToVehicle](Attach3DTextLabelToVehicle): Attaches a 3D Text Label to a specific vehicle. | ||
- [GetPlayer3DTextLabelAttachedData](GetPlayer3DTextLabelAttachedData): Gets the player 3D text label attached data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: Get3DTextLabelColor | ||
description: Gets the 3D text label color. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
:::warning | ||
|
||
This function is deprecated. Please see [Get3DTextLabelColour](Get3DTextLabelColour). | ||
|
||
::: | ||
|
||
## Description | ||
|
||
Gets the 3D text label color. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the color of. | | ||
|
||
## Returns | ||
|
||
Returns the 3D text label color. | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false); | ||
|
||
new color = Get3DTextLabelColor(gMyLabel); | ||
// The `color` will be 0x008080FF | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [GetPlayer3DTextLabelColor](GetPlayer3DTextLabelColor): Gets the player 3D text label color. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Get3DTextLabelColour | ||
description: Gets the 3D text label colour. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label colour. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the colour of. | | ||
|
||
## Returns | ||
|
||
Returns the 3D text label colour. | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false); | ||
|
||
new colour = Get3DTextLabelColour(gMyLabel); | ||
// The `colour` will be 0x008080FF | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [GetPlayer3DTextLabelColour](GetPlayer3DTextLabelColour): Gets the player 3D text label colour. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Get3DTextLabelDrawDistance | ||
description: Gets the 3D text label draw distance. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label draw distance. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the draw distance of. | | ||
|
||
## Returns | ||
|
||
Returns the draw distance of the 3D text label as float. | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new Float:drawdistance; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 10.0, 0, false); | ||
|
||
drawdistance = Get3DTextLabelDrawDistance(gMyLabel); | ||
// The `drawdistance` will be 10.0 | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [Set3DTextLabelDrawDistance](Set3DTextLabelDrawDistance): Sets the 3D text label draw distance. | ||
- [GetPlayer3DTextLabelDrawDistance](GetPlayer3DTextLabelDrawDistance): Gets the player 3D text label draw distance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Get3DTextLabelLOS | ||
description: Gets the 3D text label line-of-sight. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label line-of-sight. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the line-of-sight of. | | ||
|
||
## Returns | ||
|
||
Returns the line-of-sight of the 3D text label as boolean (false/true). | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new bool:testLOS; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 10.0, 0, true); | ||
|
||
testLOS = Get3DTextLabelLOS(gMyLabel); | ||
// The `testLOS` will be true | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [Set3DTextLabelLOS](Set3DTextLabelLOS): Sets the 3D text label line-of-sight. | ||
- [GetPlayer3DTextLabelLOS](GetPlayer3DTextLabelLOS): Gets the player 3D text label line-of-sight. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: Get3DTextLabelPos | ||
description: Gets the 3D text label position. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label position. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the position of. | | ||
| &Float:x | An float variable into which to store the X coordinate, passed by reference. | | ||
| &Float:y | An float variable into which to store the Y coordinate, passed by reference. | | ||
| &Float:z | An float variable into which to store the Z coordinate, passed by reference. | | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new Float:x, Float:y, Float:z; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false); | ||
|
||
Get3DTextLabelPos(gMyLabel, x, y, z); | ||
// The x, y, z will be 30.0, 40.0, 50.0 | ||
``` | ||
## Related Functions | ||
- [GetPlayer3DTextLabelPos](GetPlayer3DTextLabelPos): Gets the player 3D text label position. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Get3DTextLabelText | ||
description: Gets the 3D text label text. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label text. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the text of. | | ||
| text[] | An array into which to store the text, passed by reference. | | ||
| len | The length of the text that should be stored. | | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new text[16]; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false); | ||
|
||
Get3DTextLabelText(gMyLabel, text, sizeof(text)); | ||
// The `text` will be 'Hello World!' | ||
``` | ||
## Related Functions | ||
- [Create3DTextLabel](Create3DTextLabel): Create a 3D text label. | ||
- [Update3DTextLabelText](Update3DTextLabelText): Updates a 3D Text Label text and colour. | ||
- [GetPlayer3DTextLabelText](GetPlayer3DTextLabelText): Gets the player 3D text label text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Get3DTextLabelVirtualWorld | ||
description: Gets the 3D text label virtual world id. | ||
tags: ["3dtextlabel"] | ||
--- | ||
|
||
<VersionWarn version='omp v1.1.0.2612' /> | ||
|
||
## Description | ||
|
||
Gets the 3D text label virtual world id. | ||
|
||
| Name | Description | | ||
| --------- | ------------------------------------------------------------------------- | | ||
| Text3D:textid | The ID of the 3D text label to get the virtual world id of. | | ||
|
||
## Returns | ||
|
||
Returns the virtual world id of the 3D text label. | ||
|
||
## Examples | ||
|
||
```c | ||
new Text3D:gMyLabel; | ||
new worldid; | ||
|
||
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 10.0, 20, false); | ||
|
||
worldid = Get3DTextLabelVirtualWorld(gMyLabel); | ||
// The `worldid` will be 20 | ||
``` | ||
|
||
## Related Functions | ||
|
||
- [Set3DTextLabelVirtualWorld](Set3DTextLabelVirtualWorld): Sets the 3D text label virtual world id. | ||
- [GetPlayer3DTextLabelVirtualWorld](GetPlayer3DTextLabelVirtualWorld): Gets the player 3D text label virtual world id. |
Oops, something went wrong.