Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/AddSimpleModel.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public OnGameModeInit()
:::note

- **useartwork** or **artwork.enable** must be enabled first in [server settings](../../server/server.cfg#custom-models) in order for this to work.
- When `virtualworld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading).
- When `virtualWorld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading).

:::

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/AddSimpleModelTimed.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public OnGameModeInit()
:::note

- **useartwork** or **artwork.enable** must be enabled first in [server settings](../../server/server.cfg#custom-models) in order for this to work.
- When `virtualworld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading).
- When `virtualWorld` is set, the [models will be downloaded once the player enters the specific world](../callbacks/OnPlayerFinishedDownloading).

:::

Expand Down
6 changes: 3 additions & 3 deletions frontend/docs/scripting/functions/Create3DTextLabel.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public OnPlayerCommandText(playerid, cmdtext[])

:::note

drawDistance seems to be a lot smaller when spectating.
`drawDistance` seems to be a lot smaller when spectating.

:::

Expand All @@ -70,8 +70,8 @@ drawDistance seems to be a lot smaller when spectating.

:::warning

- If text[] is empty, the server/clients next to the text might crash! (Fixed in open.mp)
- If the virtualworld is set as -1 the text will not appear.
- If `text[]` is empty, the server/clients next to the text might crash! (Fixed in open.mp)
- If the `virtualWorld` is set as -1 the text will not appear.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public OnPlayerCommandText(playerid, cmdtext[])

:::note

drawDistance seems to be a lot smaller when spectating.
`drawDistance` seems to be a lot smaller when spectating.

:::

:::warning

If text[] is empty, the server/clients next to the text might crash! (Fixed in open.mp)
If `text[]` is empty, the server/clients next to the text might crash! (Fixed in open.mp)

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public OnPlayerConnect(playerid)

:::note

- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [PlayerTextDrawAlignment](PlayerTextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw.
- The `x`, `y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [PlayerTextDrawAlignment](PlayerTextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x`, `y` coordinate is the top right coordinate for the text draw.
- This function merely CREATES the textdraw, you must use [PlayerTextDrawShow](PlayerTextDrawShow) to show it to a player.
- Player-textdraws are automatically destroyed when a player disconnects.

Expand Down
6 changes: 3 additions & 3 deletions frontend/docs/scripting/functions/GetGameText.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Returns all the information on the given game text style.

| Name | Description |
| ---------------------- | --------------------------------------------------------------------- |
| playerid | The ID of the player to get the rotation of. |
| playerid | The ID of the player whose gametext is being read. |
| style | The [style](../resources/gametextstyles) of text to get the data for. |
| message[] | Return array for the text string. |
| len = sizeof (message) | Size of the output. |
| time | The time the gametext was originally shown for. |
| remaining | How much of that time is still remaining. |
| &time | The time the gametext was originally shown for. |
| &remaining | How much of that time is still remaining. |

## Returns

Expand Down
7 changes: 4 additions & 3 deletions frontend/docs/scripting/functions/IsMenuRowDisabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ tags: ["menu"]

Checks if a menu row is disabled.

| Name | Description |
| ----------- | ---------------------------- |
| Menu:menuid | The ID of the menu to check. |
| Name | Description |
| ----------- | --------------------------------------------- |
| Menu:menuid | The ID of the menu to check. |
| row | The ID of the row to check (rows start at 0). |

## Returns

Expand Down
4 changes: 2 additions & 2 deletions frontend/docs/scripting/functions/NPC_GetKeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public OnPlayerCommandText(playerid, cmdtext[])
if (!NPC_IsValid(npcid))
return SendClientMessage(playerid, 0xFF0000FF, "Invalid NPC.");

new keys, updown, leftright;
NPC_GetKeys(npcid, keys, updown, leftright);
new updown, leftright, keys;
NPC_GetKeys(npcid, updown, leftright, keys);

SendClientMessage(playerid, 0x00FF00FF, "NPC %d keys: %d, updown: %d, leftright: %d", npcid, keys, updown, leftright);
return 1;
Expand Down
8 changes: 4 additions & 4 deletions frontend/docs/scripting/functions/NPC_PausePlayback.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ tags: ["npc", "recording", "playback"]

Pauses or resumes an NPC's recording playback.

| Name | Description |
| ----- | ----------------------------------------- |
| npcid | The ID of the NPC |
| pause | Whether to pause (true) or resume (false) |
| Name | Description |
| ------ | ----------------------------------------- |
| npcid | The ID of the NPC |
| paused | Whether to pause (true) or resume (false) |

## Returns

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/TextDrawBoxColor.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public OnGameModeInit()

:::tip

If you want to change the boxcolour of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible.
If you want to change the box color of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible.

:::

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/TextDrawBoxColour.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public OnGameModeInit()

:::tip

If you want to change the boxcolour of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible.
If you want to change the box color of a textdraw that is already shown, you don't have to recreate it. Simply use [TextDrawShowForPlayer](TextDrawShowForPlayer)/[TextDrawShowForAll](TextDrawShowForAll) after modifying the textdraw and the change will be visible.

:::

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/TextDrawCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public OnPlayerConnect(playerid)

:::note

- The `x, y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [TextDrawAlignment](TextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x, y` coordinate is the top right coordinate for the text draw.
- The `x`, `y` coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using [TextDrawAlignment](TextDrawAlignment) with alignment 3 (`TEXT_DRAW_ALIGN_RIGHT`), the `x`, `y` coordinate is the top right coordinate for the text draw.
- This function merely CREATES the textdraw, you must use [TextDrawShowForPlayer](TextDrawShowForPlayer) or [TextDrawShowForAll](TextDrawShowForAll) to show it.

:::
Expand Down
4 changes: 2 additions & 2 deletions frontend/docs/scripting/functions/atan2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: atan
sidebar_label: atan
title: atan2
sidebar_label: atan2
description: Get the multi-valued inversed value of a tangent in degrees.
tags: ["math"]
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ This function is deprecated. Please see [DB_GetLegacyDBResult](DB_GetLegacyDBRes

The function gets the **memory handle** for a SQLite database result set that was allocated with [db_query](db_query).

| Name | Description |
| ----- | ---------------------------------------------------------- |
| DB:db | The index of the query (returned by [db_query](db_query)). |
| Name | Description |
| --------------- | ---------------------------------------------------------- |
| DBResult:result | The index of the query (returned by [db_query](db_query)). |

## Returns

Expand Down
8 changes: 4 additions & 4 deletions frontend/docs/scripting/functions/floattan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ tags: ["math", "floating-point"]

Get the [tangent](https://en.wikipedia.org/wiki/Trigonometric_functions) from a given angle. The input angle may be in radians, degrees or grades.

| Name | Description |
| ----------- | --------------------------------------------------------------------------------------------------- |
| Float:value | The angle from which to get the tangent. |
| anglemode | The [angle mode](../resources/anglemodes) to use, depending on the value entered. (default: radian) |
| Name | Description |
| -------------- | --------------------------------------------------------------------------------------------------- |
| Float:value | The angle from which to get the tangent. |
| anglemode:mode | The [angle mode](../resources/anglemodes) to use, depending on the value entered. (default: radian) |

## Returns

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/min.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Function used to compare the values.
| Name | Description |
| ------ | ----------------------- |
| value1 | Value 1 (a) to compare. |
| value1 | Value 2 (b) to compare. |
| value2 | Value 2 (b) to compare. |

## Returns

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: OnActorStreamIn
sidebar_label: OnActorStreamIn
title: OnVehicleStreamOut
sidebar_label: OnVehicleStreamOut
description: يتم استدعاء هذا الاستدعاء أو الكال باك عند خروج السيارة بواسطة كلاينت اللاعب
tags: []
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ tags: []

Ova funkcija kreira 'statični' pickup u igru. Ovi pickup-ovi podržavaju oružja, health, armor itd., sa sposobnošću da funkcioniraju bez da ih skriptate (oružja/health/armor će biti dati automatski).

| Ime | Deskripcija |
| ------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [model](../resources/pickupids) | Model pickupa. |
| [tip](../resources/pickuptypes) | Tip pickupa. Određuje kako pickup reagira kad ga pokupite. |
| Float:X | X kordinata na koju kreirate pickup. |
| Float:Y | Y kordinata na koju kreirate pickup. |
| Float:Z | Z kordinata na koju kreirate pickup. |
| virtualworld | ID Virtualnog svijeta(world) u kojeg stavljate taj pickup. Koristi -1 da ga prikažeš u svim svjetovima. |
| Ime | Deskripcija |
| -------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [model](../resources/pickupids) | Model pickupa. |
| [type](../resources/pickuptypes) | Tip pickupa. Određuje kako pickup reagira kad ga pokupite. |
| Float:X | X kordinata na koju kreirate pickup. |
| Float:Y | Y kordinata na koju kreirate pickup. |
| Float:Z | Z kordinata na koju kreirate pickup. |
| virtualworld | ID Virtualnog svijeta(world) u kojeg stavljate taj pickup. Koristi -1 da ga prikažeš u svim svjetovima. |

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Konektuj NPC-a na server.

| Ime | Deskripcija |
| -------- | --------------------------------------------------------------------------------- |
| Ime[] | Ime sa kojim će se NPC konektovati. Mora poštovati ista pravila kao i ime igrača. |
| name[] | Ime sa kojim će se NPC konektovati. Mora poštovati ista pravila kao i ime igrača. |
| script[] | Naziv NPC skripte koji se nalazi u mapi **npcmodes** (bez nastavka .amx). |

## Returns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public OnGameModeInit()

:::note

drawdistance se čini da je mnogo manja prilikom spectateanja
`DrawDistance` se čini da je mnogo manja prilikom spectateanja

:::

Expand All @@ -56,8 +56,8 @@ Upotrijebite ugrađivanje boja za više boja u tekstu.

:::warning

- Ako je text[] prazan, server/clients pored teksta če možda crashati!
- Ako je virtualworld postavljen na -1 tekst se neće pojaviti.
- Ako je `text[]` prazan, server/clients pored teksta če možda crashati!
- Ako je `VirtualWorld` postavljen na -1 tekst se neće pojaviti.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ if (strcmp(cmd, "/playerlabel", true) == 0)

:::note

drawdistance se čini da je mnogo manja prilikom spectateanja
`DrawDistance` se čini da je mnogo manja prilikom spectateanja

:::

:::warning

Ako je text[] prazan, server/clients pored teksta če možda crashati!
Ako je `text[]` prazan, server/clients pored teksta če možda crashati!

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ tags: ["vehicle"]

Gets a vehicle's parameters.

| Ime | Deskripcija |
| ----------------- | ------------------------------------------------------------------------------ |
| vehicleid | ID vozila za dobiti parametre. |
| & motor | Doznajte status motora. Ako je 1, motor radi. |
| i svjetla | Doznajte stanje svjetla u vozilu. Ako je 1 svjetla upaljena. |
| & alarm | Doznajte stanje alarma u vozilu. Ako je 1 alarm se oglašava (ili se oglašava). |
| i vrata | Dobiti status zaključavanja vrata. Ako su 1 vrata su zaključana. |
| & poklopac motora | Dobiti status poklopca motora / poklopca motora. Ako je 1, otvoreno je. |
| & boot | Dobiti status pokretanja / prtljažnika. 1 znači da je otvoren. |
| & cilj | Steknite objektivni status. 1 znači da je cilj uključen. |
| Ime | Deskripcija |
| ---------- | ------------------------------------------------------------------------------ |
| vehicleid | ID vozila za dobiti parametre. |
| &engine | Doznajte status motora. Ako je 1, motor radi. |
| &lights | Doznajte stanje svjetla u vozilu. Ako je 1 svjetla upaljena. |
| &alarm | Doznajte stanje alarma u vozilu. Ako je 1 alarm se oglašava (ili se oglašava). |
| &doors | Dobiti status zaključavanja vrata. Ako su 1 vrata su zaključana. |
| &bonnet | Dobiti status poklopca motora / poklopca motora. Ako je 1, otvoreno je. |
| &boot | Dobiti status pokretanja / prtljažnika. 1 znači da je otvoren. |
| &objective | Steknite objektivni status. 1 znači da je cilj uključen. |

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public OnPlayerConnect(playerid)

:::note

- X, Y kordinata je gornja lijeva kordinata za područje textdrawa na osnovu 640x480 "platna" (bez obzira na razlučivost zaslona). Ako planirate koristiti TextDrawAlignment s poravnanjem 3 (desno), kordinata x, Y je gornja desna kordinata za crtanje teksta.
- `x`, `y` kordinata je gornja lijeva kordinata za područje textdrawa na osnovu 640x480 "platna" (bez obzira na razlučivost zaslona). Ako planirate koristiti TextDrawAlignment s poravnanjem 3 (desno), kordinata `x`, `y` je gornja desna kordinata za crtanje teksta.
- Ova funkcija samo KREIRA izvlačenje teksta, za prikaz morate koristiti [TextDrawShowForPlayer](TextDrawShowForPlayer) ili [TextDrawShowForAll](TextDrawShowForAll).

:::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Ova funkcija je dodana u SA-MP 0.3.7 R1 i ne radi u nižim verzijama!

Dobiva **memorijski upravitelj** za vezu SQLite databaze koja je dodijeljena sa s [db_query](db_query).

| Ime | Deskripcija |
| ----- | ----------------------------------------------------- |
| DB:db | Indeks upita (returna/vraća ga [db_query](db_query)). |
| Ime | Deskripcija |
| --------------- | ----------------------------------------------------- |
| DBResult:result | Indeks upita (returna/vraća ga [db_query](db_query)). |

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ tags: ["sqlite"]

Funkcija se koristi za otvaranje veze s datotekom baze podataka SQLite, koja se nalazi u folderu `/scriptfiles`.

| Ime | Deskripcija |
| ----- | --------------------- |
| Ime[] | Ime datoteke databaze |
| Ime | Deskripcija |
| ------ | --------------------- |
| name[] | Ime datoteke databaze |

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ tags: []

Izbriši prethodno postavljenu imovinu ([setproperty](setproperty)).

| Ime | Deskripcija |
| ----- | ----------------------------------------------------------------------------------------------------------------- |
| id | Virtualna [mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu. Trebali biste ovo držati kao nulu. |
| Ime[] | Ime imovine, trebali biste ovo ostaviti prazno (""). |
| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. |
| Ime | Deskripcija |
| ------ | ----------------------------------------------------------------------------------------------------------------- |
| id | Virtualna [mašina](https://en.wikipedia.org/wiki/Virtual_machine) za upotrebu. Trebali biste ovo držati kao nulu. |
| name[] | Ime imovine, trebali biste ovo ostaviti prazno (""). |
| value | Jedinstveni ID imovine. Upotrijebite hash-funkciju za izračunavanje iz niza. |

## Returns

Expand Down
Loading