text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
---
title: OnActorStreamOut
description: Esta callback é chamada quando um ator é descarregado (torna-se invisível) para um jogador.
tags: []
---
<VersionWarnPT name='callback' version='SA-MP 0.3.7' />
## Descrição
Esta callback é chamada quando um ator é descarregado (torna-se invisível) para um jogador.
| Name ... | openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnActorStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnActorStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 364
} | 389 |
---
title: OnNPCSpawn
description: Essa callback é executada quando o NPC é spawnado.
tags: []
---
## Descrição
Essa callback é executada quando o NPC é spawnado.
## Exemplos
```c
public OnNPCSpawn()
{
print("NPC foi spawnado!");
SendChat("Olá mundo! Eu sou um BOT.");
return 1;
}
```
| openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnNPCSpawn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnNPCSpawn.md",
"repo_id": "openmultiplayer",
"token_count": 121
} | 390 |
---
title: OnPlayerExitedMenu
description: Chamado quando um jogador sai se um menu.
tags: ["player", "menu"]
---
## Descrição
Chamado quando um jogador sai se um menu.
| Nome | Descrição |
| -------- | -------------------------------- |
| playerid | O ID do jogador que saiu do menu |
## ... | openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnPlayerExitedMenu.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnPlayerExitedMenu.md",
"repo_id": "openmultiplayer",
"token_count": 258
} | 391 |
---
title: OnPlayerStateChange
description: Esta callback é chamada quando o estado de um jogador muda.
tags: ["player"]
---
## Descrição
Esta callback é chamada quando o estado de um jogador muda. Por exemplo, quando um jogador deixa de ser o piloto de um veículo e fica a pé.
| Nome | Desrição ... | openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnPlayerStateChange.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnPlayerStateChange.md",
"repo_id": "openmultiplayer",
"token_count": 557
} | 392 |
---
title: OnVehicleSpawn
description: Essa callback é chamada quando um veículo renasce.
tags: ["vehicle"]
---
:::warning
Essa callback **só é chamada** quando um veículo **re**nasce. CreateVehicle e AddStaticVehicleEx **não chamarão** essa callback.
:::
## Descrição
Essa callback é chamada quando um veículo rena... | openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnVehicleSpawn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/callbacks/OnVehicleSpawn.md",
"repo_id": "openmultiplayer",
"token_count": 389
} | 393 |
---
title: GangZoneDestroy
description: Destrói uma gangzone.
tags: ["gangzone"]
---
## Descrição
Destrói uma gangzone.
| Nome | Descrição |
| ---- | ---------------------------- |
| zone | O ID da gangzone a destruir. |
## Retorno
Esta função não retorna nenhum valor específico.
## Exemplos
`... | openmultiplayer/web/docs/translations/pt-BR/scripting/functions/GangZoneDestroy.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/functions/GangZoneDestroy.md",
"repo_id": "openmultiplayer",
"token_count": 473
} | 394 |
---
title: GetPlayerIp
description: Obtém o endereço IP de um jogador específico e armazena-o em uma string.
tags: ["player", "ip address"]
---
## Descrição
Obtém o endereço IP de um jogador específico e armazena-o em uma string.
| Nome | Descrição ... | openmultiplayer/web/docs/translations/pt-BR/scripting/functions/GetPlayerIp.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/functions/GetPlayerIp.md",
"repo_id": "openmultiplayer",
"token_count": 922
} | 395 |
---
title: SetVehicleParamsCarWindows
description: Permite abrir e fechar as janelas de um veículo.
tags: ["vehicle"]
---
Esta função foi implementada no SA-MP 0.3.7 e não funcionará em versões anteriores.
## Descrição
Permite abrir e fechar as janelas de um veículo.
| Nome | Descrição ... | openmultiplayer/web/docs/translations/pt-BR/scripting/functions/SetVehicleParamsCarWindows.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/functions/SetVehicleParamsCarWindows.md",
"repo_id": "openmultiplayer",
"token_count": 573
} | 396 |
---
title: IDs Ossos
---
:::note
Para ser usado com [SetPlayerAttachedObject](../functions/SetPlayerAttachedObject).
:::
| ID | Osso |
| --- | -------------------------- |
| 1 | Coluna |
| 2 | Cabeça |
| 3 | Braço esquerdo |
| 4 | Br... | openmultiplayer/web/docs/translations/pt-BR/scripting/resources/boneid.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/pt-BR/scripting/resources/boneid.md",
"repo_id": "openmultiplayer",
"token_count": 519
} | 397 |
---
title: OnActorStreamOut
description: Acest callback este apelat atunci când un actor iese din flux (streamed out) de către clientul unui jucător.
tags: []
---
:::warning
Această funcție a fost adăugată în SA-MP 0.3.7 și nu va funcționa în versiunile anterioare!
:::
## Descriere
Acest callback este apelat atunc... | openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnActorStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnActorStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 478
} | 398 |
---
title: OnPlayerConnect
description: Acest callback este apelat atunci când un jucător se conectează la server.
tags: ["player"]
---
## Descriere
Acest callback este apelat atunci când un jucător se conectează la server.
| Nume | Descriere |
| -------- | ----------------------------... | openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnPlayerConnect.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnPlayerConnect.md",
"repo_id": "openmultiplayer",
"token_count": 530
} | 399 |
---
title: OnPlayerLeaveRaceCheckpoint
description: Acest callback este apelat atunci când un jucător părăsește punctul de control al cursei.
tags: ["player", "checkpoint", "racecheckpoint"]
---
## Descriere
Acest callback este apelat atunci când un jucător părăsește punctul de control al cursei.
| Nume | Descri... | openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnPlayerLeaveRaceCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 603
} | 400 |
---
title: OnRconCommand
description: Acest callback este apelat atunci când o comandă este trimisă prin consola serverului, RCON la distanță sau prin comanda „/rcon” din joc.
tags: []
---
## Descriere
Acest callback este apelat atunci când o comandă este trimisă prin consola serverului, RCON la distanță sau prin com... | openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnRconCommand.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/callbacks/OnRconCommand.md",
"repo_id": "openmultiplayer",
"token_count": 910
} | 401 |
---
title: AddPlayerClass
description: Adaugă o clasă la selecția clasei.
tags: ["player"]
---
## Descriere
Adaugă o clasă la selecția clasei. Clasele sunt folosite, astfel încât jucătorii să poată genera un skin la alegere.
| Nume | Descriere |
| -... | openmultiplayer/web/docs/translations/ro/scripting/functions/AddPlayerClass.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/functions/AddPlayerClass.md",
"repo_id": "openmultiplayer",
"token_count": 1088
} | 402 |
---
title: Sloturi pentru componente
---
:::info
Folosiți-le pentru a lucra cu functia [GetVehicleComponentInSlot](../functions/GetVehicleComponentInSlot). :::
---
| Slot | Nume |
| ---- | ----------------------- |
| 0 | CARMODTYPE_SPOILER |
| 1 | CARMODTYPE_HOOD |
| 2 | CAR... | openmultiplayer/web/docs/translations/ro/scripting/resources/Componentslots.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/scripting/resources/Componentslots.md",
"repo_id": "openmultiplayer",
"token_count": 378
} | 403 |
---
title: Probleme comune
---
## Serverul se blochează instantaneu la pornire
Cel mai frecvent este o eroare în fișierul server.cfg sau modul dvs. de joc lipsește. Verificați fișierul server_log.txt și motivul ar trebui să fie situat în partea de jos. Dacă nu, verificați fișierul crashinfo.txt. Soluția mai bună pent... | openmultiplayer/web/docs/translations/ro/server/CommonServerIssues.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ro/server/CommonServerIssues.md",
"repo_id": "openmultiplayer",
"token_count": 2089
} | 404 |
---
title: GetPlayerSkin
description: Возвращает скин игрока.
tags: ["player"]
---
## Описание
Возвращает значение ID скина игрока.
| Параметр | Описание |
| -------- | ---------------------------------------- |
| playerid | Игрок, скин которого хотите получить. |
## Возвращаемые ... | openmultiplayer/web/docs/translations/ru/scripting/functions/GetPlayerSkin.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/ru/scripting/functions/GetPlayerSkin.md",
"repo_id": "openmultiplayer",
"token_count": 593
} | 405 |
---
title: OnEnterExitModShop
description: Ta povratni klic se pokliče, ko igralec vstopi v mod trgovino ali jo zapusti.
tags: []
---
## Opis
Ta povratni klic se pokliče, ko igralec vstopi v mod trgovino ali jo zapusti.
| Ime | Opis |
| -----... | openmultiplayer/web/docs/translations/sl/scripting/callbacks/OnEnterExitModShop.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/sl/scripting/callbacks/OnEnterExitModShop.md",
"repo_id": "openmultiplayer",
"token_count": 580
} | 406 |
---
title: BanEx
description: Banuje igraca sa razlogom.
tags: ["administration"]
---
## Opis
Banuje igraca sa razlogom.
| Ime | Opis |
| -------- | ------------------------ |
| playerid | ID igraca koga banujemo. |
| reason | Razlog bana. |
## Vracanje
Ova funkcija ne vraca ... | openmultiplayer/web/docs/translations/sr/scripting/functions/BanEx.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/sr/scripting/functions/BanEx.md",
"repo_id": "openmultiplayer",
"token_count": 749
} | 407 |
---
title: OnActorStreamOut
description: Callback นี้ถูกเรียกเมื่อแอคเตอร์ถูกสตรีมออกโดยไคลเอนต์ของผู้เล่น
tags: []
---
:::warning
Callback นี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!
:::
## คำอธิบาย
Callback นี้ถูกเรียกเมื่อแอคเตอร์ถูกสตรีมออกโดยไคลเอนต์ของผู้เล่น
| ชื่อ | คำอธิบาย ... | openmultiplayer/web/docs/translations/th/scripting/callbacks/OnActorStreamOut.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/callbacks/OnActorStreamOut.md",
"repo_id": "openmultiplayer",
"token_count": 997
} | 408 |
---
title: OnPlayerObjectMoved
description: This callback is called when a player object is moved after MovePlayerObject (when it stops moving).
tags: ["player"]
---
## คำอธิบาย
This callback is called when a player object is moved after MovePlayerObject (when it stops moving).
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/callbacks/OnPlayerObjectMoved.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/callbacks/OnPlayerObjectMoved.md",
"repo_id": "openmultiplayer",
"token_count": 566
} | 409 |
---
title: OnRconLoginAttempt
description: This callback is called when someone attempts to log in to RCON in-game; successful or not.
tags: []
---
## คำอธิบาย
This callback is called when someone attempts to log in to RCON in-game; successful or not.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/callbacks/OnRconLoginAttempt.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/callbacks/OnRconLoginAttempt.md",
"repo_id": "openmultiplayer",
"token_count": 847
} | 410 |
---
title: AddPlayerClassEx
description: This function is exactly the same as the AddPlayerClass function, with the addition of a team parameter.
tags: ["player"]
---
## คำอธิบาย
This function is exactly the same as the AddPlayerClass function, with the addition of a team parameter.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/AddPlayerClassEx.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/AddPlayerClassEx.md",
"repo_id": "openmultiplayer",
"token_count": 1008
} | 411 |
---
title: AttachObjectToObject
description: You can use this function to attach objects to other objects.
tags: []
---
:::warning
This function was added in SA-MP 0.3d and will not work in earlier versions!
:::
## คำอธิบาย
You can use this function to attach objects to other objects. The objects will folow the ma... | openmultiplayer/web/docs/translations/th/scripting/functions/AttachObjectToObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/AttachObjectToObject.md",
"repo_id": "openmultiplayer",
"token_count": 1379
} | 412 |
---
title: ClearAnimations
description: Clears all animations for the given player (it also cancels all current tasks such as jetpacking, parachuting,entering vehicles, driving (removes player out of vehicle), swimming, etc.
tags: []
---
## คำอธิบาย
Clears all animations for the given player (it also cancels all curr... | openmultiplayer/web/docs/translations/th/scripting/functions/ClearAnimations.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/ClearAnimations.md",
"repo_id": "openmultiplayer",
"token_count": 652
} | 413 |
---
title: DeleteSVar
description: Deletes a previously set server variable.
tags: []
---
## คำอธิบาย
Deletes a previously set server variable.
| Name | Description |
| ------- | ------------------------------------------ |
| varname | The name of the server variable to delete. |
#... | openmultiplayer/web/docs/translations/th/scripting/functions/DeleteSVar.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/DeleteSVar.md",
"repo_id": "openmultiplayer",
"token_count": 523
} | 414 |
---
title: EditObject
description: Allows a player to edit an object (position and rotation) using their mouse on a GUI (Graphical User Interface).
tags: []
---
## คำอธิบาย
Allows a player to edit an object (position and rotation) using their mouse on a GUI (Graphical User Interface).
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/EditObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/EditObject.md",
"repo_id": "openmultiplayer",
"token_count": 674
} | 415 |
---
title: GangZoneFlashForAll
description: GangZoneFlashForAll flashes a gangzone for all players.
tags: ["gangzone"]
---
## คำอธิบาย
GangZoneFlashForAll flashes a gangzone for all players.
| Name | Description |
| ... | openmultiplayer/web/docs/translations/th/scripting/functions/GangZoneFlashForAll.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GangZoneFlashForAll.md",
"repo_id": "openmultiplayer",
"token_count": 787
} | 416 |
---
title: GetConsoleVarAsString
description: Get the string value of a console variable.
tags: []
---
## คำอธิบาย
Get the string value of a console variable.
| Name | Description |
| --------------- | -------------------------------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/GetConsoleVarAsString.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetConsoleVarAsString.md",
"repo_id": "openmultiplayer",
"token_count": 605
} | 417 |
---
title: GetPlayerAnimationIndex
description: Returns the index of any running applied animations.
tags: ["player"]
---
## คำอธิบาย
Returns the index of any running applied animations.
| Name | Description |
| -------- | -------------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerAnimationIndex.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerAnimationIndex.md",
"repo_id": "openmultiplayer",
"token_count": 450
} | 418 |
---
title: GetPlayerFacingAngle
description: Gets the angle a player is facing.
tags: ["player"]
---
## คำอธิบาย
Gets the angle a player is facing.
| Name | Description |
| ---------- | ----------------------------------------------------- |
| playerid | The player y... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerFacingAngle.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerFacingAngle.md",
"repo_id": "openmultiplayer",
"token_count": 553
} | 419 |
---
title: GetPlayerPoolSize
description: Gets the highest playerid currently in use on the server.
tags: ["player"]
---
:::warning
ฟังก์ชั่นนี้ถูกเพิ่มใน SA-MP 0.3.7 และจะไม่ทำงานในเวอร์ชั่นก่อนหน้านี้!
:::
## คำอธิบาย
Gets the highest playerid currently in use on the server.
| Name | Description |
| ---- | ----... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerPoolSize.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerPoolSize.md",
"repo_id": "openmultiplayer",
"token_count": 425
} | 420 |
---
title: GetPlayerVirtualWorld
description: Retrieves the current virtual world the player is in.
tags: ["player"]
---
## คำอธิบาย
Retrieves the current virtual world the player is in.
| Name | Description |
| -------- | ------------------------------------------------- |
... | openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetPlayerVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 468
} | 421 |
---
title: GetVehicleComponentInSlot
description: Retrieves the installed component ID (modshop mod(ification)) on a vehicle in a specific slot.
tags: ["vehicle"]
---
## คำอธิบาย
Retrieves the installed component ID (modshop mod(ification)) on a vehicle in a specific slot.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/GetVehicleComponentInSlot.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetVehicleComponentInSlot.md",
"repo_id": "openmultiplayer",
"token_count": 730
} | 422 |
---
title: GetVehicleVirtualWorld
description: Get the virtual world of a vehicle.
tags: ["vehicle"]
---
## คำอธิบาย
Get the virtual world of a vehicle.
| Name | Description |
| --------- | -------------------------------------------------- |
| vehicleid | The ID of the ve... | openmultiplayer/web/docs/translations/th/scripting/functions/GetVehicleVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/GetVehicleVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 304
} | 423 |
---
title: IsPlayerInCheckpoint
description: Check if the player is currently inside a checkpoint, this could be used for properties or teleport points for example.
tags: ["player", "checkpoint"]
---
## คำอธิบาย
Check if the player is currently inside a checkpoint, this could be used for properties or teleport points... | openmultiplayer/web/docs/translations/th/scripting/functions/IsPlayerInCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/IsPlayerInCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 597
} | 424 |
---
title: LimitPlayerMarkerRadius
description: Set the player marker radius.
tags: ["player"]
---
## คำอธิบาย
Set the player marker radius.
| Name | Description |
| ------------------- | ------------------------------------ |
| Float:marker_radius | The radius that markers wi... | openmultiplayer/web/docs/translations/th/scripting/functions/LimitPlayerMarkerRadius.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/LimitPlayerMarkerRadius.md",
"repo_id": "openmultiplayer",
"token_count": 356
} | 425 |
---
title: PlayerPlaySound
description: Plays the specified sound for a player.
tags: ["player"]
---
## คำอธิบาย
Plays the specified sound for a player.
For a library that lists all sounds, check out [this](https://github.com/WoutProvost/samp-sound-array).
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/PlayerPlaySound.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/PlayerPlaySound.md",
"repo_id": "openmultiplayer",
"token_count": 608
} | 426 |
---
title: PlayerTextDrawSetSelectable
description: Toggles whether a player-textdraw can be selected or not.
tags: ["player", "textdraw", "playertextdraw"]
---
## คำอธิบาย
Toggles whether a player-textdraw can be selected or not.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/PlayerTextDrawSetSelectable.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/PlayerTextDrawSetSelectable.md",
"repo_id": "openmultiplayer",
"token_count": 802
} | 427 |
---
title: SelectObject
description: Display the cursor and allow the player to select an object.
tags: []
---
## คำอธิบาย
Display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/SelectObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SelectObject.md",
"repo_id": "openmultiplayer",
"token_count": 470
} | 428 |
---
title: SetGameModeText
description: Set the name of the game mode, which appears in the server browser.
tags: []
---
## คำอธิบาย
Set the name of the game mode, which appears in the server browser.
| Name | Description |
| -------- | ----------------------------- |
| string[] | The gamemode ... | openmultiplayer/web/docs/translations/th/scripting/functions/SetGameModeText.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetGameModeText.md",
"repo_id": "openmultiplayer",
"token_count": 260
} | 429 |
---
title: SetPlayerAttachedObject
description: Attach an object to a specific bone on a player.
tags: ["player"]
---
## คำอธิบาย
Attach an object to a specific bone on a player.
| Name | Description |
| -------------- | -------------... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerAttachedObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerAttachedObject.md",
"repo_id": "openmultiplayer",
"token_count": 1638
} | 430 |
---
title: SetPlayerObjectMaterialText
description: Replace the texture of a player object with text.
tags: ["player"]
---
## คำอธิบาย
Replace the texture of a player object with text.
| Name | Description |
| ------------- | ---------------------------------... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerObjectMaterialText.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerObjectMaterialText.md",
"repo_id": "openmultiplayer",
"token_count": 975
} | 431 |
---
title: SetPlayerWantedLevel
description: Set a player's wanted level (6 brown stars under HUD).
tags: ["player"]
---
## คำอธิบาย
Set a player's wanted level (6 brown stars under HUD).
| Name | Description |
| -------- | ------------------------------------------------ |
|... | openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerWantedLevel.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetPlayerWantedLevel.md",
"repo_id": "openmultiplayer",
"token_count": 392
} | 432 |
---
title: SetVehicleParamsForPlayer
description: Set the parameters of a vehicle for a player.
tags: ["player", "vehicle"]
---
## คำอธิบาย
Set the parameters of a vehicle for a player.
| Name | Description |
| ----------- | ---... | openmultiplayer/web/docs/translations/th/scripting/functions/SetVehicleParamsForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/SetVehicleParamsForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 1478
} | 433 |
---
title: StopObject
description: Stop a moving object after MoveObject has been used.
tags: []
---
## คำอธิบาย
Stop a moving object after MoveObject has been used.
| Name | Description |
| -------- | ------------------------------------ |
| objectid | The ID of the object to stop movin... | openmultiplayer/web/docs/translations/th/scripting/functions/StopObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/StopObject.md",
"repo_id": "openmultiplayer",
"token_count": 607
} | 434 |
---
title: TextDrawSetPreviewRot
description: Sets the rotation and zoom of a 3D model preview textdraw.
tags: ["textdraw"]
---
## คำอธิบาย
Sets the rotation and zoom of a 3D model preview textdraw.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/TextDrawSetPreviewRot.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/TextDrawSetPreviewRot.md",
"repo_id": "openmultiplayer",
"token_count": 1105
} | 435 |
---
title: UpdatePlayer3DTextLabelText
description: Updates a player 3D Text Label's text and color.
tags: ["player", "3dtextlabel"]
---
## คำอธิบาย
Updates a player 3D Text Label's text and color
| Name | Description |
| --------------- | ----------------... | openmultiplayer/web/docs/translations/th/scripting/functions/UpdatePlayer3DTextLabelText.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/UpdatePlayer3DTextLabelText.md",
"repo_id": "openmultiplayer",
"token_count": 647
} | 436 |
---
title: db_get_field_assoc_float
description: Get the contents of field as a float with specified name.
tags: ["sqlite"]
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Get the contents of field as a float with specified name.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/db_get_field_assoc_float.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/db_get_field_assoc_float.md",
"repo_id": "openmultiplayer",
"token_count": 652
} | 437 |
---
title: fexist
description: Checks if a specific file exists in the scriptfiles directory.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Checks if a specific file exists in the scriptfiles directory.
| Name | Description |
... | openmultiplayer/web/docs/translations/th/scripting/functions/fexist.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/fexist.md",
"repo_id": "openmultiplayer",
"token_count": 642
} | 438 |
---
title: floatstr
description: Converts a string to a float.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Converts a string to a float.
| Name | Description |
| ------ | ----------------------------------- |
| string | The string to convert into a... | openmultiplayer/web/docs/translations/th/scripting/functions/floatstr.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/floatstr.md",
"repo_id": "openmultiplayer",
"token_count": 312
} | 439 |
---
title: gettime
description: Get the current server time, which will be stored in the variables &hour, &minute and &second.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Get the current server time, which will be stored in the variables &hour, &minute and &second.
| Name ... | openmultiplayer/web/docs/translations/th/scripting/functions/gettime.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/gettime.md",
"repo_id": "openmultiplayer",
"token_count": 505
} | 440 |
---
title: strcmp
description: Compares two strings to see if they are the same.
tags: []
---
:::warning
This function starts with lowercase letter.
:::
## คำอธิบาย
Compares two strings to see if they are the same.
| Name | Description ... | openmultiplayer/web/docs/translations/th/scripting/functions/strcmp.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/functions/strcmp.md",
"repo_id": "openmultiplayer",
"token_count": 1211
} | 441 |
---
title: Map Icons
description: A list of Map Icons
---
| ID | Icon | Name |
| --- | -------------------------------- | --------------------------------- |
| 0 |  | Colored Square/Triangle (Dynamic) |
| 1 |  |
| 0 | WEAPONSTATE_NO_BULLETS ... | openmultiplayer/web/docs/translations/th/scripting/resources/weaponstates.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/th/scripting/resources/weaponstates.md",
"repo_id": "openmultiplayer",
"token_count": 302
} | 443 |
---
title: Katkıda Bulunmak
description: SA-MP ve open.mp wikisine katkıda bulunmak istiyorsanız bu başlığı inceleyebilirsiniz.
---
Bu dökümantasyon kaynağı katkıda bulunmak isteyen herkese açıktır. İhtiyacınız olan şeyler [GitHub](https://github.com) üzerinden bir hesap ve birazcık boş zaman. Git'i bilmenize gerek yo... | openmultiplayer/web/docs/translations/tr/meta/Contributing.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/meta/Contributing.md",
"repo_id": "openmultiplayer",
"token_count": 3785
} | 444 |
---
title: OnPlayerCommandText
description: Bu callback oyuncu chat ekranında herhangi bir komut kullandığında çağrılır.
tags: ["player"]
---
## Açıklama
Bu callback oyuncu chat ekranında herhangi bir komut kullandığında çağrılır. '/' ile başlayan her şey komuttur ve bu callbacki çağırır. (örnek: /yardim)
| Ad ... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerCommandText.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerCommandText.md",
"repo_id": "openmultiplayer",
"token_count": 704
} | 445 |
---
title: OnPlayerLeaveCheckpoint
description: Bu fonksiyon, bir oyuncu SetPlayerCheckpoint tarafından kendisi için ayarlanan kontrol noktasından ayrıldığında çağrılır.
tags: ["player", "checkpoint"]
---
## Açıklama
Bu fonksiyon, bir oyuncu SetPlayerCheckpoint tarafından kendisi için ayarlanan kontrol noktasından a... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerLeaveCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerLeaveCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 676
} | 446 |
---
title: OnPlayerWeaponShot
description: Bu fonksiyon, oyuncu ateş ettiğinde çağrılır.
tags: ["player"]
---
## Açıklama
Bu fonksiyon, oyuncu ateş ettiğinde çağrılır. Bu fonksiyon ateşli silahları destekler. Sadece yolcu drive-by'ını destekler.(buna sürücünün drive-by atması, sea sparrow/hunter gibi araçların silahl... | openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerWeaponShot.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/callbacks/OnPlayerWeaponShot.md",
"repo_id": "openmultiplayer",
"token_count": 1803
} | 447 |
---
title: AddPlayerClass
description: Class seçimi sırasında yeni bir class oluşturur.
tags: ["player"]
---
## Açıklama
Class seçimine yeni bir class ekler. Kullanıcılar seçtikleri classın skinleriyle spawn olabilirler.
| İsim | Açıklama |
| ------------... | openmultiplayer/web/docs/translations/tr/scripting/functions/AddPlayerClass.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/AddPlayerClass.md",
"repo_id": "openmultiplayer",
"token_count": 1148
} | 448 |
---
title: AttachCameraToObject
description: Bu fonksiyonu, bir oyuncuya kamera yerleştirmek için kullanabilirsiniz.
tags: []
---
## Açıklama
Bu fonksiyonu, bir oyuncuya kamera yerleştirmek için kullanabilirsiniz.
| İsim | Açıklama |
| -------- | ------... | openmultiplayer/web/docs/translations/tr/scripting/functions/AttachCameraToObject.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/AttachCameraToObject.md",
"repo_id": "openmultiplayer",
"token_count": 604
} | 449 |
---
title: Create3DTextLabel
description: 3D Metin Etiketi oluşturma.
tags: ["3dtextlabel"]
---
## Açıklama
3D Metin Etiketi oluşturma.
| Parametre | Açıklama |
| ------------ | --------------------------------------------------------------------- |
| t... | openmultiplayer/web/docs/translations/tr/scripting/functions/Create3DTextLabel.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/Create3DTextLabel.md",
"repo_id": "openmultiplayer",
"token_count": 1290
} | 450 |
---
title: db_close
description: Closes a SQLite database connection that was opened with `db_open`.
keywords:
- sqlite
---
<LowercaseNoteTR />
## Açıklama
Daha önceden [db_open](db_open) fonksiyonu ile açılmış olan veritabanı bağlantısını kapatır.
| İsim | Açıklama ... | openmultiplayer/web/docs/translations/tr/scripting/functions/db_close.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/functions/db_close.md",
"repo_id": "openmultiplayer",
"token_count": 884
} | 451 |
---
title: Açı Modları
description: Açı ölçüm birimleri için SI birim sabitleri.
---
:::note
Bu açı modları, [floatsin](../functions/floatsin), [floatcos](../functions/floatcos) ve [floattan](../functions/floattan) fonksiyonları tarafından kullanılır.
:::
| Mod | Açıklama |
| ------- | ----------- |
| radian | Aç... | openmultiplayer/web/docs/translations/tr/scripting/resources/anglemodes.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/tr/scripting/resources/anglemodes.md",
"repo_id": "openmultiplayer",
"token_count": 200
} | 452 |
---
title: OnClientCheckResponse
description: 当SendClientCheck请求完成时,调用这个回调
tags: []
---
## 描述
当 SendClientCheck 请求完成时,调用这个回调。
| 参数名 | 描述 |
| -------- | ------------------- |
| playerid | 被检查的玩家 ID。 |
| actionid | 执行的检查类型 ID。 |
| memaddr | 请求的地址。 |
| retndata | 检查的结果。 |
## 返回值
它在过滤... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnClientCheckResponse.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnClientCheckResponse.md",
"repo_id": "openmultiplayer",
"token_count": 574
} | 453 |
---
title: OnObjectMoved
description: 当物体在MoveObject之后移动时(当物体停止移动时)调用此回调。
tags: []
---
## 描述
当物体在 MoveObject 之后移动时(当物体停止移动时)调用此回调。
| 参数名 | 描述 |
| -------- | ------------- |
| objectid | 移动的物体 ID |
## 返回值
它在过滤脚本中总是先被调用。
## 案例
```c
public OnObjectMoved(objectid)
{
printf("物体 %d 完成了移动。", objectid);
... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnObjectMoved.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnObjectMoved.md",
"repo_id": "openmultiplayer",
"token_count": 566
} | 454 |
---
title: OnPlayerFinishedDownloading
description: 当玩家下载完自定义模型时,这个回调函数被调用。
tags: ["player"]
---
<VersionWarnCN name='回调' version='SA-MP 0.3.DL R1' />
## 描述
当玩家下载完自定义模型时,这个回调函数被调用。有关如何向服务器添加自定义模型的更多信息,请参见发布线程和本教程。
| 参数名 | 描述 |
| ------------ | -----------------------------... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerFinishedDownloading.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerFinishedDownloading.md",
"repo_id": "openmultiplayer",
"token_count": 655
} | 455 |
---
title: OnPlayerStreamIn
description: 当某个玩家从其他玩家的客户端流入时,这个回调被调用。
tags: ["player"]
---
## 描述
当某个玩家从其他玩家的客户端流入时,这个回调被调用。
| 参数名 | 描述 |
| ----------- | --------------------- |
| playerid | 已被流入的玩家 ID。 |
| forplayerid | 接收到该流的玩家 ID。 |
## 返回值
它在过滤脚本中总是先被调用。
## 案例
```c
public OnPlayerStrea... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerStreamIn.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnPlayerStreamIn.md",
"repo_id": "openmultiplayer",
"token_count": 418
} | 456 |
---
title: OnVehicleSirenStateChange
description: 当车辆的警笛被触发时,这个回调被调用。
tags: ["vehicle"]
---
:::warning
SA-MP 0.3.7 版本增加了这个回调函数,无法在以前的版本使用!
:::
## 描述
当车辆的警笛被触发时,这个回调被调用。
| 参数名 | 描述 |
| --------- | ---------------------------------- |
| playerid | 触发警笛的玩家(司机)的 ID。 |
| vehicl... | openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleSirenStateChange.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/callbacks/OnVehicleSirenStateChange.md",
"repo_id": "openmultiplayer",
"token_count": 854
} | 457 |
---
title: AllowPlayerTeleport
description: 为玩家启用/禁用在地图上点击右键传送的功能。
tags: ["player"]
---
## 描述
为玩家启用/禁用在地图上点击右键传送的功能。
| 参数名 | 说明 |
| -------- | --------------------- |
| playerid | 允许传送的玩家的 ID。 |
| allow | 1-启用,0-禁用 |
## 返回值
该函数不返回任何特定的值。
## 案例
```c
public OnPlayerConnect(playerid)
{
... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/AllowPlayerTeleport.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/AllowPlayerTeleport.md",
"repo_id": "openmultiplayer",
"token_count": 560
} | 458 |
---
title: GetPlayerCameraAspectRatio
description: 检索玩家视角的纵横比。
tags: ["player", "camera"]
---
## 描述
检索玩家视角的纵横比。
| 参数名 | 说明 |
| -------- | ------------------------- |
| playerid | 获得视角纵横比的玩家 ID。 |
## 返回值
玩家视角的纵横比,以浮点数表示。纵横比可以是以下三个值之一:关闭宽屏时为 4:3 (1.3333334,Float:0x3FAAAAAB);打开信箱模式时为 5:4 (1.247... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/GetPlayerCameraAspectRatio.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/GetPlayerCameraAspectRatio.md",
"repo_id": "openmultiplayer",
"token_count": 719
} | 459 |
---
title: acos
description: 以度为单位求余弦函数的倒数。
tags: ["math"]
---
<LowercaseNoteCN />
## 描述
以度为单位求余弦函数的倒数。在三角函数中,反余弦是余弦的逆运算。
| 参数名 | 说明 |
| ----------- | ------------------------------- |
| Float:value | 在区间内计算其反余弦值 [-1,+1]. |
## 返回值
以度为单位的角度,在区间[0.0,180.0]内。
## 案例
```c
// 余弦0.50000... | openmultiplayer/web/docs/translations/zh-cn/scripting/functions/acos.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-cn/scripting/functions/acos.md",
"repo_id": "openmultiplayer",
"token_count": 613
} | 460 |
---
title: 用戶端
description: 此分類包含 SA-MP 用戶端功能和支援相關的資訊。
---
此分類包含 SA-MP 用戶端功能和支援相關的資訊。
| openmultiplayer/web/docs/translations/zh-tw/client/_.md/0 | {
"file_path": "openmultiplayer/web/docs/translations/zh-tw/client/_.md",
"repo_id": "openmultiplayer",
"token_count": 112
} | 461 |
app = "openmultiplayer-web"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
PORT = "3000"
[build]
dockerfile = "Dockerfile.frontend"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 3000
process... | openmultiplayer/web/frontend.fly.toml/0 | {
"file_path": "openmultiplayer/web/frontend.fly.toml",
"repo_id": "openmultiplayer",
"token_count": 410
} | 462 |
# Open Multiplayer
მომავალი multiplayer მოდიფიკაცია თამაშისთვის - _Grand Theft Auto: San Andreas_ - რომელიც იქნება უკუთავსებადი ერთ-ერთ ამჟამინდელ მოდიფიკაციასთან - _San Andreas Multiplayer_.
<br />
ეს ნიშნავს, რომ **მიმდინარე SA:MP კლიენტი და მისი არსებული სკრიპტები უპრობლემოდ იმუშავებს open.mp-ზეც**.
ამასთანავე, ... | openmultiplayer/web/frontend/content/ka/index.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/ka/index.mdx",
"repo_id": "openmultiplayer",
"token_count": 1248
} | 463 |
---
title: SA-MP за андроид (Смартфон верзија)
date: "2021-01-30T12:46:46"
author: Potassium
---
Став open.mp тима о издању SA-MP-а за андроид.
Здраво свима,
Само смо хтели да напишемо један брзу блог објаву о нашем ставу о SA-MP андроид верзији, зато што смо добијали много коментара на о томе као и YouTube видеа на... | openmultiplayer/web/frontend/content/sr/blog/samp-mobile.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/sr/blog/samp-mobile.mdx",
"repo_id": "openmultiplayer",
"token_count": 1266
} | 464 |
---
title: Forum ve Wiki Çevrimdışı
description: SA-MP Forum ve Wiki'nin neden çevrimdışı olduğunu merak ediyorsanız, bilgi ve sonraki adımlar için bunu okuyun
---
# Forum ve Wiki neden çevrimdışı?
25 Eylül 2020 tarihinde forum.sa-mp.com ve wiki.sa-mp.com'un sertifikaları süresi dolmuştur. Birçok kullanıcı bunu fark ... | openmultiplayer/web/frontend/content/tr/missing-sites.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/tr/missing-sites.mdx",
"repo_id": "openmultiplayer",
"token_count": 1004
} | 465 |
---
title: 我怎样才能加入这个团队?
date: "2021-08-29T01:24:09"
author: Potassium
---
➖ 我怎样才能加入这个团队?
我们经常被问到这个问题,所以我们认为应该发布一个关于这个问题的帖子!
首先,非常感谢你对贡献感兴趣!
如你所知,我们都是 SA-MP 的老玩家,聚集在一起是为了保持 SA 多人游戏世界的活力。我们热衷于这个项目,为玩家而存在,这就是为什么它最终将是开源的。
开发岗:
我们目前正在为测试版做最后的润色工作,一旦测试版上线,我们将非常感谢并欢迎社区的贡献!我们需要测试功能和提供边缘案例,当然也需要寻找错误和其他需要解决的问题等帮助。
测试版将是开发... | openmultiplayer/web/frontend/content/zh-cn/blog/how-to-join-the-team.mdx/0 | {
"file_path": "openmultiplayer/web/frontend/content/zh-cn/blog/how-to-join-the-team.mdx",
"repo_id": "openmultiplayer",
"token_count": 1071
} | 466 |
google-site-verification: google50096c476ab4ce72.html
| openmultiplayer/web/frontend/public/google50096c476ab4ce72.html/0 | {
"file_path": "openmultiplayer/web/frontend/public/google50096c476ab4ce72.html",
"repo_id": "openmultiplayer",
"token_count": 19
} | 467 |
import {
ChakraProvider,
cookieStorageManager,
localStorageManager,
} from '@chakra-ui/react'
import { GetServerSidePropsContext } from 'next'
import theme from 'src/styles/theme'
interface ChakraProps {
cookies: string;
children: React.ReactNode
}
// See: https://chakra-ui.com/docs/styled-system/features/c... | openmultiplayer/web/frontend/src/components/Chakra.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/Chakra.tsx",
"repo_id": "openmultiplayer",
"token_count": 323
} | 468 |
/* eslint-disable @next/next/no-img-element */
/* eslint-disable jsx-a11y/alt-text */
import { trim } from "lodash";
import React, { FC } from "react";
const Img: FC<
React.DetailedHTMLProps<
React.ImgHTMLAttributes<HTMLImageElement>,
HTMLImageElement
>
> = (props) => {
const { src } = props;
if (src?.... | openmultiplayer/web/frontend/src/components/templates/Image.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/templates/Image.tsx",
"repo_id": "openmultiplayer",
"token_count": 199
} | 469 |
import Admonition from "../../../Admonition";
export default function NoteLowercase({ name = "function" }) {
return (
<Admonition type="warning">
<p>Bu {name} öğesi küçük harfle başlar.</p>
</Admonition>
);
}
| openmultiplayer/web/frontend/src/components/templates/translations/tr/lowercase-note.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/components/templates/translations/tr/lowercase-note.tsx",
"repo_id": "openmultiplayer",
"token_count": 90
} | 470 |
import { Components } from "@mdx-js/react";
export type MarkdownContent = {
compiledSource: string;
renderedOutput?: string;
scope?: any;
};
export type MarkdownRenderConfig = {
components: Components;
mdxOptions?: any;
scope?: any;
};
| openmultiplayer/web/frontend/src/mdx-helpers/types.ts/0 | {
"file_path": "openmultiplayer/web/frontend/src/mdx-helpers/types.ts",
"repo_id": "openmultiplayer",
"token_count": 77
} | 471 |
import { GetServerSidePropsContext, GetServerSidePropsResult } from "next";
const Page = () => null;
export const getServerSideProps = async (
ctx: GetServerSidePropsContext
): Promise<GetServerSidePropsResult<unknown>> => {
ctx.res.setHeader("clear-site-data", '"cookies"');
ctx.res.writeHead(302, { Location: "... | openmultiplayer/web/frontend/src/pages/logout.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/pages/logout.tsx",
"repo_id": "openmultiplayer",
"token_count": 135
} | 472 |
import { extendTheme } from "@chakra-ui/react";
import { mode } from '@chakra-ui/theme-tools';
import { theme as editorTheme } from 'rich-markdown-editor'
const fonts = {
body: `Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sa... | openmultiplayer/web/frontend/src/styles/theme.tsx/0 | {
"file_path": "openmultiplayer/web/frontend/src/styles/theme.tsx",
"repo_id": "openmultiplayer",
"token_count": 991
} | 473 |
import "react";
declare module "react" {
interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
jsx?: boolean;
global?: boolean;
}
}
declare module "react-twemoji" {
//
}
| openmultiplayer/web/frontend/types.d.ts/0 | {
"file_path": "openmultiplayer/web/frontend/types.d.ts",
"repo_id": "openmultiplayer",
"token_count": 72
} | 474 |
package web
import "net/http"
func WithContentType(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "application/json")
next.ServeHTTP(w, r)
})
}
| openmultiplayer/web/internal/web/content_type.go/0 | {
"file_path": "openmultiplayer/web/internal/web/content_type.go",
"repo_id": "openmultiplayer",
"token_count": 87
} | 475 |
-- AlterTable
ALTER TABLE "Server" ADD COLUMN "deletedAt" TIMESTAMP(3);
| openmultiplayer/web/prisma/migrations/20220108204808_server_deleted_at/migration.sql/0 | {
"file_path": "openmultiplayer/web/prisma/migrations/20220108204808_server_deleted_at/migration.sql",
"repo_id": "openmultiplayer",
"token_count": 30
} | 476 |
import { addons } from '@storybook/addons'
import { create } from '@storybook/theming'
import './global.css'
import brandImage from '../public/img/ol-brand/overleaf.svg'
const theme = create({
base: 'light',
brandTitle: 'Overleaf',
brandUrl: 'https://www.overleaf.com',
brandImage,
})
addons.setConfig({ them... | overleaf/web/.storybook/manager.js/0 | {
"file_path": "overleaf/web/.storybook/manager.js",
"repo_id": "overleaf",
"token_count": 113
} | 477 |
const logger = require('logger-sharelatex')
const OError = require('@overleaf/o-error')
const AnalyticsRegistrationSourceHelper = require('./AnalyticsRegistrationSourceHelper')
const SessionManager = require('../../Features/Authentication/SessionManager')
function setSource(source) {
return function (req, res, next)... | overleaf/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js/0 | {
"file_path": "overleaf/web/app/src/Features/Analytics/AnalyticsRegistrationSourceMiddleware.js",
"repo_id": "overleaf",
"token_count": 488
} | 478 |
/* eslint-disable
camelcase,
node/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created bec... | overleaf/web/app/src/Features/Chat/ChatController.js/0 | {
"file_path": "overleaf/web/app/src/Features/Chat/ChatController.js",
"repo_id": "overleaf",
"token_count": 1709
} | 479 |
/* eslint-disable
camelcase,
node/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider sho... | overleaf/web/app/src/Features/Contacts/ContactManager.js/0 | {
"file_path": "overleaf/web/app/src/Features/Contacts/ContactManager.js",
"repo_id": "overleaf",
"token_count": 1107
} | 480 |
const _ = require('underscore')
const settings = require('@overleaf/settings')
const moment = require('moment')
const EmailMessageHelper = require('./EmailMessageHelper')
const StringHelper = require('../Helpers/StringHelper')
const BaseWithHeaderEmailLayout = require('./Layouts/BaseWithHeaderEmailLayout')
const SpamSa... | overleaf/web/app/src/Features/Email/EmailBuilder.js/0 | {
"file_path": "overleaf/web/app/src/Features/Email/EmailBuilder.js",
"repo_id": "overleaf",
"token_count": 6184
} | 481 |
const {
acceptsJson,
} = require('../../infrastructure/RequestContentTypeDetection')
module.exports = {
redirect,
}
// redirect the request via headers or JSON response depending on the request
// format
function redirect(req, res, redir) {
if (acceptsJson(req)) {
res.json({ redir })
} else {
res.redi... | overleaf/web/app/src/Features/Helpers/AsyncFormHelper.js/0 | {
"file_path": "overleaf/web/app/src/Features/Helpers/AsyncFormHelper.js",
"repo_id": "overleaf",
"token_count": 114
} | 482 |
let InstitutionsFeatures
const UserGetter = require('../User/UserGetter')
const PlansLocator = require('../Subscription/PlansLocator')
const Settings = require('@overleaf/settings')
module.exports = InstitutionsFeatures = {
getInstitutionsFeatures(userId, callback) {
InstitutionsFeatures.getInstitutionsPlan(
... | overleaf/web/app/src/Features/Institutions/InstitutionsFeatures.js/0 | {
"file_path": "overleaf/web/app/src/Features/Institutions/InstitutionsFeatures.js",
"repo_id": "overleaf",
"token_count": 487
} | 483 |
const NotificationsHandler = require('./NotificationsHandler')
const SessionManager = require('../Authentication/SessionManager')
const _ = require('underscore')
module.exports = {
getAllUnreadNotifications(req, res) {
const userId = SessionManager.getLoggedInUserId(req.session)
NotificationsHandler.getUserN... | overleaf/web/app/src/Features/Notifications/NotificationsController.js/0 | {
"file_path": "overleaf/web/app/src/Features/Notifications/NotificationsController.js",
"repo_id": "overleaf",
"token_count": 400
} | 484 |
const path = require('path')
const DocstoreManager = require('../Docstore/DocstoreManager')
const Errors = require('../Errors/Errors')
const ProjectGetter = require('./ProjectGetter')
const { promisifyAll } = require('../../util/promises')
const ProjectEntityHandler = {
getAllDocs(projectId, callback) {
// We ge... | overleaf/web/app/src/Features/Project/ProjectEntityHandler.js/0 | {
"file_path": "overleaf/web/app/src/Features/Project/ProjectEntityHandler.js",
"repo_id": "overleaf",
"token_count": 3101
} | 485 |
const { User } = require('../../models/User')
module.exports = {
getReferedUsers(userId, callback) {
const projection = { refered_users: 1, refered_user_count: 1 }
User.findById(userId, projection, function (err, user) {
if (err) {
return callback(err)
}
const referedUsers = user.re... | overleaf/web/app/src/Features/Referal/ReferalHandler.js/0 | {
"file_path": "overleaf/web/app/src/Features/Referal/ReferalHandler.js",
"repo_id": "overleaf",
"token_count": 185
} | 486 |
/* eslint-disable
max-len,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions... | overleaf/web/app/src/Features/StaticPages/StaticPagesRouter.js/0 | {
"file_path": "overleaf/web/app/src/Features/StaticPages/StaticPagesRouter.js",
"repo_id": "overleaf",
"token_count": 382
} | 487 |
/* eslint-disable
camelcase,
node/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider sho... | overleaf/web/app/src/Features/Subscription/SubscriptionLocator.js/0 | {
"file_path": "overleaf/web/app/src/Features/Subscription/SubscriptionLocator.js",
"repo_id": "overleaf",
"token_count": 1543
} | 488 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.