Skip to content

Commit

Permalink
Add "Related Resources" to the bottom of the relevant docs and a bunc…
Browse files Browse the repository at this point in the history
…h of changes (#832)

* update callbacks/OnPlayerClickPlayer.md

* update callbacks/OnPlayerDeath.md

* update callbacks/OnPlayerEditObject.md

* update callbacks/OnPlayerGiveDamage.md

* update callbacks/OnPlayerGiveDamageActor.md

* update callbacks/OnPlayerSelectObject.md

* update callbacks/OnPlayerStateChange.md

* update callbacks/OnPlayerTakeDamage.md

* update callbacks/OnPlayerWeaponShot.md

* update AddStaticPickup.md

* update AddStaticVehicle.md

* update AddStaticVehicleEx.md

* update AddVehicleComponent.md

* update ChangeVehicleColor.md

* update ChangeVehicleColours.md

* update ChangeVehiclePaintjob.md

* update CreatePickup.md

* update CreatePlayerPickup.md

* update CreatePlayerTextDraw.md

* update CreateVehicle.md

* update floatcos.md

* update floatround.md

* update floatsin.md

* update floattan.md

* update GameTextForAll.md

* update GameTextForPlayer.md

* update GetPlayerCameraMode.md

* update GetPlayerFightingStyle.md

* update GetPlayerKeys.md

* update GetPlayerSkillLevel.md

* update GetPlayerSkin.md

* update GetPlayerSpecialAction.md

* update GetPlayerState.md

* update GetPlayerWeaponState.md

* update GetPlayerWeather.md

* update GetPVarType.md

* update GetSVarType.md

* update GetVehicleColours.md

* update GetVehicleComponentInSlot.md

* update GetVehicleDamageStatus.md

* update GetVehicleHealth.md

* update GetVehicleModelInfo.md

* update GetWeather.md

* update GivePlayerWeapon.md

* update InterpolateCameraLookAt.md

* update InterpolateCameraPos.md

* update LinkVehicleToInterior.md

* update NetStats_ConnectionStatus.md

* update PlayCrimeReportForPlayer.md

* update PlayerPlaySound.md

* update PlayerSpectatePlayer.md

* update PlayerSpectateVehicle.md

* update RemoveVehicleComponent.md

* update SendDeathMessage.md

* update SetObjectMaterialText.md

* update SetPlayerAttachedObject.md

* update SetPlayerCameraLookAt.md

* update SetPlayerColor.md

* update SetPlayerFightingStyle.md

* update SetPlayerInterior.md

* update SetPlayerMapIcon.md

* update SetPlayerShopName.md

* update SetPlayerSkin.md

* update SetPlayerSpecialAction.md

* update SetPlayerWeather.md

* update SetVehicleHealth.md

* update SetWeather.md

* update ShowPlayerDialog.md

* update ShowPlayerMarkers.md

* update StartRecordingPlayerData.md

* update TextDrawCreate.md

* update UpdateVehicleDamageStatus.md

* update resources/animations.md

* update resources/callbacks-sequence.md

* update resources/colorslist.md

* update resources/constants.md

* update resources/glossary.md

* update resources/landinggearstate.md

* update resources/mapicons.md

* update resources/mapiconstyles.md

* update resources/objecteditionresponsetypes.md

* update resources/pvartypes.md

* update resources/svartypes.md

* update resources/textdraws.md

* update resources/weaponskills.md
  • Loading branch information
adib-yg authored Jan 15, 2024
1 parent b922c78 commit 008c0a8
Show file tree
Hide file tree
Showing 85 changed files with 519 additions and 70 deletions.
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerClickPlayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ There is currently only one 'source' (0 - CLICK_SOURCE_SCOREBOARD). The existenc
The following callbacks might be useful, as they're related to this callback in one way or another.
- [OnPlayerClickTextDraw](OnPlayerClickTextDraw): This callback is called when a player clicks on a textdraw.
## Related Resources
- [Click Sources](../resources/clicksources)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerDeath.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@ The following functions might be useful, as they're related to this callback in
- [SendDeathMessage](../functions/SendDeathMessage): Add a kill to the death list.
- [SetPlayerHealth](../functions/SetPlayerHealth): Set a player's health.
## Related Resources
- [Weapon IDs](../resources/weaponids)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerEditObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ The following functions might be useful, as they're related to this callback in
- [CreateObject](../functions/CreateObject): Create an object.
- [DestroyObject](../functions/DestroyObject): Destroy an object.
- [MoveObject](../functions/MoveObject): Move an object.
## Related Resources
- [Object Edition Response Types](../resources/objecteditionresponsetypes)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerGiveDamage.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ The following callbacks might be useful, as they're related to this callback in
- [OnPlayerTakeDamage](OnPlayerTakeDamage): This callback is called when a player takes damage.
- [OnPlayerWeaponShot](OnPlayerWeaponShot): This callback is called when a player fires a weapon.
## Related Resources
- [Body Parts](../resources/bodyparts)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerGiveDamageActor.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ The following functions might be useful, as they're related to this callback in
- [GetActorHealth](../functions/GetActorHealth): Gets the health of an actor.
- [IsActorInvulnerable](../functions/IsActorInvulnerable): Check if actor is invulnerable.
- [IsValidActor](../functions/IsValidActor): Check if actor id is valid.
## Related Resources
- [Body Parts](../resources/bodyparts)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerSelectObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:f
The following functions might be useful, as they're related to this callback in one way or another.
- [BeginObjectSelecting](../functions/BeginObjectSelecting): Select an object.
## Related Resources
- [Select Object Types](../resources/selectobjecttypes)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerStateChange.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ The following functions might be useful, as they're related to this callback in
- [GetPlayerState](../functions/GetPlayerState): Get a player's current state.
- [GetPlayerSpecialAction](../functions/GetPlayerSpecialAction): Get a player's current special action.
- [SetPlayerSpecialAction](../functions/SetPlayerSpecialAction): Set a player's special action.
## Related Resources
- [Player States](../resources/playerstates)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerTakeDamage.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ The following callbacks might be useful, as they're related to this callback in
- [OnPlayerGiveDamage](OnPlayerGiveDamage): This callback is called when a player gives damage.
- [OnPlayerWeaponShot](OnPlayerWeaponShot): This callback is called when a player fires a weapon.
## Related Resources
- [Body Parts](../resources/bodyparts)
4 changes: 4 additions & 0 deletions docs/scripting/callbacks/OnPlayerWeaponShot.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ The following callbacks might be useful, as they're related to this callback in
The following functions might be useful, as they're related to this callback in one way or another.
- [GetPlayerLastShotVectors](../functions/GetPlayerLastShotVectors): Retrieves the vector of the last shot a player fired.
## Related Resources
- [Bullet Hit Types](../resources/bullethittypes)
4 changes: 4 additions & 0 deletions docs/scripting/functions/AddStaticPickup.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ This function doesn't return a pickup ID that you can use in, for example, OnPla

- [CreatePickup](CreatePickup): Create a pickup.
- [DestroyPickup](DestroyPickup): Destroy a pickup.

## Related Resources

- [Pickup IDs](../resources/pickupids)
7 changes: 6 additions & 1 deletion docs/scripting/functions/AddStaticVehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode.

| Name | Description |
| ---------------------------------------- | -------------------------------------- |
| modelid | The Model ID for the vehicle. |
| modelid | The [Model ID](../resources/vehicleid) for the vehicle. |
| Float:spawn_X | The X-coordinate for the vehicle. |
| Float:spawn_Y | The Y-coordinate for the vehicle. |
| Float:spawn_Z | The Z-coordinate for the vehicle. |
Expand Down Expand Up @@ -53,3 +53,8 @@ public OnGameModeInit()

- [OnVehicleSpawn](../callbacks/OnVehicleSpawn): Called when a vehicle respawns.
- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): Called when a vehicle's siren is toggled on/off.

## Related Resources

- [Vehicle Models](../resources/vehicleid): Comprehensive list of all vehicle models available in game.
- [Vehicle Colour IDs](../resources/vehiclecolorid): List of all vehicle colour IDs.
7 changes: 6 additions & 1 deletion docs/scripting/functions/AddStaticVehicleEx.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Adds a 'static' vehicle (models are pre-loaded for players)to the gamemode. Diff

| Name | Description |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| modelid | The Model ID for the vehicle. |
| modelid | The [Model ID](../resources/vehicleid) for the vehicle. |
| Float:spawn_X | The X-coordinate for the vehicle. |
| Float:spawn_Y | The Y-coordinate for the vehicle. |
| Float:spawn_Z | The Z-coordinate for the vehicle. |
Expand Down Expand Up @@ -55,3 +55,8 @@ public OnGameModeInit()

- [OnVehicleSpawn](../callbacks/OnVehicleSpawn): Called when a vehicle respawns.
- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): Called when a vehicle's siren is toggled on/off.

## Related Resources

- [Vehicle Models](../resources/vehicleid): Comprehensive list of all vehicle models available in game.
- [Vehicle Colour IDs](../resources/vehiclecolorid): List of all vehicle colour IDs.
7 changes: 7 additions & 0 deletions docs/scripting/functions/AddVehicleComponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,12 @@ Using an invalid component ID crashes the player's game. There are no internal c
- [RemoveVehicleComponent](RemoveVehicleComponent): Remove a component from a vehicle.
- [GetVehicleComponentInSlot](GetVehicleComponentInSlot): Check what components a vehicle has.
- [GetVehicleComponentType](GetVehicleComponentType): Check the type of component via the ID.
## Related Callbacks
- [OnVehicleMod](../callbacks/OnVehicleMod): Called when a vehicle is modded.
- [OnEnterExitModShop](../callbacks/OnEnterExitModShop): Called when a vehicle enters or exits a mod shop.
## Related Resources
- [Car Component IDs](../resources/carcomponentid)
5 changes: 5 additions & 0 deletions docs/scripting/functions/ChangeVehicleColor.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ Some vehicles have only a primary color and some can not have the color changed
## Related Callbacks

- [OnVehicleRespray](../callbacks/OnVehicleRespray): Called when a vehicle is resprayed.

## Related Resources

- [Vehicle Color IDs](../resources/vehiclecolorid)
- [Original Car Colors](../resources/original-car-colors)
5 changes: 5 additions & 0 deletions docs/scripting/functions/ChangeVehicleColours.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,8 @@ Some vehicles have only a primary color and some can not have the color changed
## Related Callbacks

- [OnVehicleRespray](../callbacks/OnVehicleRespray): Called when a vehicle is resprayed.

## Related Resources

- [Vehicle Colour IDs](../resources/vehiclecolorid)
- [Original Car Colors](../resources/original-car-colors)
4 changes: 4 additions & 0 deletions docs/scripting/functions/ChangeVehiclePaintjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), rand); // changes the paintj
## Related Callbacks
- [OnVehiclePaintjob](../callbacks/OnVehiclePaintjob): Called when a vehicle's paintjob is changed.
## Related Resources
- [Vehicle Paintjob IDs](../resources/paintjobs)
5 changes: 5 additions & 0 deletions docs/scripting/functions/CreatePickup.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ The following callbacks might be useful, as they're related to this function.
- [OnPlayerPickUpPickup](../callbacks/OnPlayerPickUpPickup): Called when a player picks up a pickup.
- [OnPickupStreamIn](../callbacks/OnPickupStreamIn): Called when a pickup enters the visual range of a player.
- [OnPickupStreamOut](../callbacks/OnPickupStreamOut): Called when a pickup leaves the visual range of a player.
## Related Resources
- [Pickup IDs](../resources/pickupids)
- [Pickup Types](../resources/pickuptypes)
5 changes: 5 additions & 0 deletions docs/scripting/functions/CreatePlayerPickup.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ The following callbacks might be useful, as they're related to this function.
- [OnPlayerPickUpPlayerPickup](../callbacks/OnPlayerPickUpPlayerPickup): Called when a player picks up a player-pickup.
- [OnPlayerPickupStreamIn](../callbacks/OnPlayerPickupStreamIn): Called when a player-pickup enters the visual range of the player.
- [OnPlayerPickupStreamOut](../callbacks/OnPlayerPickupStreamOut): Called when a player-pickup leaves the visual range of the player.
## Related Resources
- [Pickup IDs](../resources/pickupids)
- [Pickup Types](../resources/pickuptypes)
26 changes: 26 additions & 0 deletions docs/scripting/functions/CreatePlayerTextDraw.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,29 @@ Keyboard key mapping codes (such as ~k~~VEHICLE_ENTER_EXIT~ Doesn't work beyond
- [PlayerTextDrawHide](PlayerTextDrawHide): Hide a player-textdraw.
- [IsPlayerTextDrawVisible](IsPlayerTextDrawVisible): Checks if a player-textdraw is shown for the player.
- [IsValidPlayerTextDraw](IsValidPlayerTextDraw): Checks if a player-textdraw is valid.
- [PlayerTextDrawBackgroundColour](PlayerTextDrawBackgroundColour): Adjust the background colour of a player-textdraw.
- [PlayerTextDrawBoxColour](PlayerTextDrawBoxColour): Sets the colour of a textdraw's box (PlayerTextDrawUseBox ).
- [PlayerTextDrawColour](PlayerTextDrawColour): Sets the text colour of a player-textdraw.
- [PlayerTextDrawGetAlignment](PlayerTextDrawGetAlignment): Gets the text alignment of a player-textdraw.
- [PlayerTextDrawGetBackgroundColour](PlayerTextDrawGetBackgroundColour): Gets the background colour of a player-textdraw.
- [PlayerTextDrawGetBoxColour](PlayerTextDrawGetBoxColour): Gets the box colour of a player-textdraw.
- [PlayerTextDrawGetColour](PlayerTextDrawGetColour): Gets the text colour of a player-textdraw.
- [PlayerTextDrawGetFont](PlayerTextDrawGetFont): Gets the text font of a player-textdraw.
- [PlayerTextDrawGetLetterSize](PlayerTextDrawGetLetterSize): Gets the width and height of the letters.
- [PlayerTextDrawGetOutline](PlayerTextDrawGetOutline): Get the outline size on a player-textdraw.
- [PlayerTextDrawGetPos](PlayerTextDrawGetPos): Gets the position of a player-textdraw.
- [PlayerTextDrawGetPreviewModel](PlayerTextDrawGetPreviewModel): Gets the preview model of a 3D preview player-textdraw.
- [PlayerTextDrawGetPreviewRot](PlayerTextDrawGetPreviewRot): Gets the rotation and zoom of a 3D model preview player-textdraw.
- [PlayerTextDrawGetPreviewVehicleColours](PlayerTextDrawGetPreviewVehicleColours): Gets the preview vehicle colors of a 3D preview player-textdraw.
- [PlayerTextDrawGetShadow](PlayerTextDrawGetShadow): Get the shadow size on a player-textdraw.
- [PlayerTextDrawGetString](PlayerTextDrawGetString): Gets the text of a player-textdraw.
- [PlayerTextDrawGetTextSize](PlayerTextDrawGetTextSize): Gets the X axis and Y axis of the player-textdraw text size.
- [PlayerTextDrawIsBox](PlayerTextDrawIsBox): Checks if a player-textdraw is box.
- [PlayerTextDrawIsProportional](PlayerTextDrawIsProportional): Checks if a player-textdraw is proportional.
- [PlayerTextDrawIsSelectable](PlayerTextDrawIsSelectable): Checks if a player-textdraw is selectable.
- [PlayerTextDrawSetPos](PlayerTextDrawSetPos): Sets the position of a player-textdraw.
- [PlayerTextDrawSetPreviewVehicleColours](PlayerTextDrawSetPreviewVehicleColours): Set the color of a vehicle in a player-textdraw model preview (if a vehicle is shown).
## Related Resources
- [TextDraw Sprites](../resources/textdrawsprites)
7 changes: 6 additions & 1 deletion docs/scripting/functions/CreateVehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Creates a vehicle in the world. Can be used in place of AddStaticVehicleEx at an

| Name | Description |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| vehicletype | The model for the vehicle. |
| [vehicletype](../resources/vehicleid) | The model for the vehicle. |
| Float:X | The X coordinate for the vehicle. |
| Float:Y | The Y coordinate for the vehicle. |
| Float:Z | The Z coordinate for the vehicle. |
Expand Down Expand Up @@ -64,3 +64,8 @@ Trains can only be added with AddStaticVehicle and AddStaticVehicleEx.

- [OnVehicleSpawn](../callbacks/OnVehicleSpawn): Called when a vehicle respawns.
- [OnVehicleSirenStateChange](../callbacks/OnVehicleSirenStateChange): Called when a vehicle's siren is toggled on/off.

## Related Resources

- [Vehicle Models](../resources/vehicleid): Comprehensive list of all vehicle models available in game.
- [Vehicle Colour IDs](../resources/vehiclecolorid): List of all vehicle colour IDs.
4 changes: 4 additions & 0 deletions docs/scripting/functions/GameTextForAll.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ Do note that the players may crash because of odd number of tilde (~) symbols us
- [GameTextForPlayer](GameTextForPlayer): Display gametext to a player.
- [HideGameTextForPlayer](HideGameTextForPlayer): Stop showing a gametext style to a player.
- [TextDrawShowForAll](TextDrawShowForAll): Show a textdraw for all players.
## Related Resources
- [GameText Styles](../resources/gametextstyles)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GameTextForPlayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ Also, a blank space at end of the string may result in faliure. For example: `"H
- [GetGameText](GetGameText): Gets all the information on the given game text style.
- [HasGameText](HasGameText): Does the player currently have text in the given gametext style displayed?
- [TextDrawShowForAll](TextDrawShowForAll): Show a textdraw for all players.
## Related Resources
- [GameText Styles](../resources/gametextstyles)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPVarType.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ stock PrintPVar(playerid, varname[])
- [SetPVarFloat](SetPVarFloat): Set a float for a player variable.
- [GetPVarFloat](GetPVarFloat): Get the previously set float from a player variable.
- [DeletePVar](DeletePVar): Delete a player variable.
## Related Resources
- [Player Variable Types](../resources/pvartypes)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerCameraMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ public OnPlayerText(playerid, text[])
- [SetPlayerCameraPos](SetPlayerCameraPos): Set a player's camera position.
- [SetPlayerCameraLookAt](SetPlayerCameraLookAt): Set where a player's camera should face.
- [SetCameraBehindPlayer](SetCameraBehindPlayer): Set a player's camera behind them.
## Related Resources
- [Camera Modes](../resources/cameramodes)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerFightingStyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ if (GetPlayerFightingStyle(playerid) == FIGHT_STYLE_NORMAL)
## Related Functions

- [SetPlayerFightingStyle](SetPlayerFightingStyle): Set a player's fighting style.

## Related Resources

- [Fighting Styles](../resources/fightingstyles)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerKeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ public OnPlayerUpdate(playerid)
Only the FUNCTION of keys can be detected; not actual keys. For example, it is not possible to detect if a player presses SPACE, but you can detect if they press SPRINT (which can be mapped (assigned/binded) to ANY key (but is space by default)). As of update 0.3.7, the keys "A" and "D" are not recognized when in a vehicle. However, keys "W" and "S" can be detected with the "keys" parameter.
:::
## Related Resources
- [Keys](../resources/keys)
4 changes: 3 additions & 1 deletion docs/scripting/functions/GetPlayerSkillLevel.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ The skill parameter is NOT the weapon ID, it is the skill type. Click [here](../
:::
# Related Functions
- [SetPlayerSkillLevel](SetPlayerSkillLevel): Set the skill level of a certain weapon type for a player.
# Related Information
- [Weapon Skills](../resources/weaponskills#skill-levels): List of weapon skills that are used to set player's skill level.
- [Weapon Skills](../resources/weaponskills): List of weapon skills that are used to set player's skill level.
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerSkin.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ Returns the new skin after [SetSpawnInfo](SetSpawnInfo) is called but before the
## Related Functions

- [SetPlayerSkin](SetPlayerSkin): Set a player's skin.

## Related Resources

- [Skin IDs](../resources/skins)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerSpecialAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ public OnPlayerUpdate(playerid)
- [SetPlayerSpecialAction](SetPlayerSpecialAction): Set a player's special action.
- [GetPlayerState](GetPlayerState): Get a player's current state.
## Related Resources
- [Special Action IDs](../resources/specialactions)
7 changes: 7 additions & 0 deletions docs/scripting/functions/GetPlayerState.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ public OnPlayerDeath(playerid, killerid, reason)
- [GetPlayerSpecialAction](GetPlayerSpecialAction): Get a player's current special action.
- [SetPlayerSpecialAction](SetPlayerSpecialAction): Set a player's special action.
## Related Callbacks
- [OnPlayerStateChange](../callbacks/OnPlayerStateChange): Called when a player changes state.
## Related Resources
- [Player States](../resources/playerstates)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetPlayerWeaponState.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ public OnPlayerSpawn(playerid)
## Related Functions
- [GivePlayerWeapon](GivePlayerWeapon): Give a player a weapon.
## Related Resources
- [Weapon States](../resources/weaponstates)
6 changes: 5 additions & 1 deletion docs/scripting/functions/GetPlayerWeather.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ printf("Player weather: %d", GetPlayerWeather(playerid));
## Related Functions
- [SetPlayerWeather](SetPlayerWeather): Set a player's weather.
- [SetWeather](SetWeather): Set the world weather for all players.
- [SetWeather](SetWeather): Set the world weather for all players.
## Related Resources
- [Weather IDs](../resources/weatherid)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetSVarType.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ stock PrintSVar(varname[])
- [SetSVarFloat](SetSVarFloat): Set a float for a server variable.
- [GetSVarFloat](GetSVarFloat): Get the previously set float from a server variable.
- [DeleteSVar](DeleteSVar): Delete a server variable.
## Related Resources
- [Server Variable Types](../resources/svartypes)
4 changes: 4 additions & 0 deletions docs/scripting/functions/GetVehicleColours.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ public OnGameModeInit()
## Related Functions

- [ChangeVehicleColours](ChangeVehicleColours): Change a vehicle's primary and secondary colors.

## Related Resources

- [Vehicle Colour IDs](../resources/vehiclecolorid)
7 changes: 7 additions & 0 deletions docs/scripting/functions/GetVehicleComponentInSlot.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,12 @@ Known Bug(s): Doesn't work for CARMODTYPE_STEREO. Both front bull bars and front
- [AddVehicleComponent](AddVehicleComponent): Add a component to a vehicle.
- [GetVehicleComponentType](GetVehicleComponentType): Check the type of component via the ID.
## Related Callbacks
- [OnVehicleMod](../callbacks/OnVehicleMod): Called when a vehicle is modded.
- [OnEnterExitModShop](../callbacks/OnEnterExitModShop): Called when a vehicle enters or exits a mod shop.
## Related Resources
- [Vehicle Component Slots](../resources/Componentslots)
Loading

0 comments on commit 008c0a8

Please sign in to comment.