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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 15 additions & 15 deletions frontend/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ Release Candidate 2 (RC2) of the open.mp server.
- [GetPlayerBuildingsRemoved](scripting/functions/GetPlayerBuildingsRemoved)
- [GetPlayerAttachedObject](scripting/functions/GetPlayerAttachedObject)
- [SendClientMessagef](scripting/functions/SendClientMessagef)
- [GameTextForPlayerf](scripting/functions/GameTextForPlayerf)
- [SendPlayerMessageToPlayerf](scripting/functions/SendPlayerMessageToPlayerf)
- [GameTextForPlayerf](scripting/functions/GameTextForPlayer)
- [SendPlayerMessageToPlayerf](scripting/functions/SendPlayerMessageToPlayer)
- [RemovePlayerWeapon](scripting/functions/RemovePlayerWeapon)
- [HidePlayerDialog](scripting/functions/HidePlayerDialog)
- [IsPlayerUsingOfficialClient](scripting/functions/IsPlayerUsingOfficialClient)
Expand Down Expand Up @@ -409,8 +409,8 @@ Release Candidate 2 (RC2) of the open.mp server.
- [IsValidGangZone](scripting/functions/IsValidGangZone)
- [IsPlayerInGangZone](scripting/functions/IsPlayerInGangZone)
- [IsGangZoneVisibleForPlayer](scripting/functions/IsGangZoneVisibleForPlayer)
- [GangZoneGetColorForPlayer](scripting/functions/GangZoneGetColorForPlayer)
- [GangZoneGetFlashColorForPlayer](scripting/functions/GangZoneGetFlashColorForPlayer)
- [GangZoneGetColorForPlayer](scripting/functions/GangZoneGetColourForPlayer)
- [GangZoneGetFlashColorForPlayer](scripting/functions/GangZoneGetFlashColourForPlayer)
- [IsGangZoneFlashingForPlayer](scripting/functions/IsGangZoneFlashingForPlayer)
- [GangZoneGetPos](scripting/functions/GangZoneGetPos)
- [UseGangZoneCheck](scripting/functions/UseGangZoneCheck)
Expand All @@ -423,14 +423,14 @@ Release Candidate 2 (RC2) of the open.mp server.
- [IsValidPlayerGangZone](scripting/functions/IsValidPlayerGangZone)
- [IsPlayerInPlayerGangZone](scripting/functions/IsPlayerInPlayerGangZone)
- [IsPlayerGangZoneVisible](scripting/functions/IsPlayerGangZoneVisible)
- [PlayerGangZoneGetColor](scripting/functions/PlayerGangZoneGetColor)
- [PlayerGangZoneGetFlashColor](scripting/functions/PlayerGangZoneGetFlashColor)
- [PlayerGangZoneGetColor](scripting/functions/PlayerGangZoneGetColour)
- [PlayerGangZoneGetFlashColor](scripting/functions/PlayerGangZoneGetFlashColour)
- [IsPlayerGangZoneFlashing](scripting/functions/IsPlayerGangZoneFlashing)
- [PlayerGangZoneGetPos](scripting/functions/PlayerGangZoneGetPos)
- [UsePlayerGangZoneCheck](scripting/functions/UsePlayerGangZoneCheck)
- [GetObjectDrawDistance](scripting/functions/GetObjectDrawDistance)
- [GetObjectMoveSpeed](scripting/functions/GetObjectMoveSpeed)
- [GetObjectTarget](scripting/functions/GetObjectTarget)
- [GetObjectTarget](scripting/functions/GetObjectMovingTargetPos)
- [GetObjectMovingTargetPos](scripting/functions/GetObjectMovingTargetPos)
- [GetObjectMovingTargetRot](scripting/functions/GetObjectMovingTargetRot)
- [GetObjectAttachedData](scripting/functions/GetObjectAttachedData)
Expand All @@ -443,7 +443,7 @@ Release Candidate 2 (RC2) of the open.mp server.
- [GetPlayerObjectDrawDistance](scripting/functions/GetPlayerObjectDrawDistance)
- [SetPlayerObjectMoveSpeed](scripting/functions/SetPlayerObjectMoveSpeed)
- [GetPlayerObjectMoveSpeed](scripting/functions/GetPlayerObjectMoveSpeed)
- [GetPlayerObjectTarget](scripting/functions/GetPlayerObjectTarget)
- [GetPlayerObjectTarget](scripting/functions/GetPlayerObjectMovingTargetPos)
- [GetPlayerObjectMovingTargetPos](scripting/functions/GetPlayerObjectMovingTargetPos)
- [GetPlayerObjectMovingTargetRot](scripting/functions/GetPlayerObjectMovingTargetRot)
- [GetPlayerObjectAttachedData](scripting/functions/GetPlayerObjectAttachedData)
Expand All @@ -454,7 +454,7 @@ Release Candidate 2 (RC2) of the open.mp server.
- [GetPlayerObjectMaterialText](scripting/functions/GetPlayerObjectMaterialText)
- [IsPlayerObjectNoCameraCol](scripting/functions/IsPlayerObjectNoCameraCol)
- [GetPlayerSurfingPlayerObjectID](scripting/functions/GetPlayerSurfingPlayerObjectID)
- [GetPlayerCameraTargetPlayerObj](scripting/functions/GetPlayerCameraTargetPlayerObj)
- [GetPlayerCameraTargetPlayerObj](scripting/functions/GetPlayerCameraTargetPlayerObject)
- [GetObjectType](scripting/functions/GetObjectType)
- [IsValidPickup](scripting/functions/IsValidPickup)
- [IsPickupStreamedIn](scripting/functions/IsPickupStreamedIn)
Expand Down Expand Up @@ -493,15 +493,15 @@ Release Candidate 2 (RC2) of the open.mp server.
- [GetPlayer3DTextLabelText](scripting/functions/GetPlayer3DTextLabelText)
- [GetPlayer3DTextLabelColor](scripting/functions/GetPlayer3DTextLabelColor)
- [GetPlayer3DTextLabelPos](scripting/functions/GetPlayer3DTextLabelPos)
- [SetPlayer3DTextLabelDrawDist](scripting/functions/SetPlayer3DTextLabelDrawDist)
- [SetPlayer3DTextLabelDrawDist](scripting/functions/SetPlayer3DTextLabelDrawDistance)
- [GetPlayer3DTextLabelDrawDist](scripting/functions/GetPlayer3DTextLabelDrawDist)
- [GetPlayer3DTextLabelLOS](scripting/functions/GetPlayer3DTextLabelLOS)
- [SetPlayer3DTextLabelLOS](scripting/functions/SetPlayer3DTextLabelLOS)
- [GetPlayer3DTextLabelVirtualW](scripting/functions/GetPlayer3DTextLabelVirtualW)
- [GetPlayer3DTextLabelVirtualW](scripting/functions/GetPlayer3DTextLabelVirtualWorld)
- [GetPlayer3DTextLabelAttached](scripting/functions/GetPlayer3DTextLabelAttached)
- [GetVehicleSpawnInfo](scripting/functions/GetVehicleSpawnInfo)
- [SetVehicleSpawnInfo](scripting/functions/SetVehicleSpawnInfo)
- [GetVehicleColor](scripting/functions/GetVehicleColor)
- [GetVehicleColor](scripting/functions/GetVehicleColours)
- [GetVehiclePaintjob](scripting/functions/GetVehiclePaintjob)
- [GetVehicleInterior](scripting/functions/GetVehicleInterior)
- [GetVehicleNumberPlate](scripting/functions/GetVehicleNumberPlate)
Expand Down Expand Up @@ -545,9 +545,9 @@ Release Candidate 2 (RC2) of the open.mp server.
- [IsValidServerRule](scripting/functions/IsValidServerRule)
- [RemoveServerRule](scripting/functions/RemoveServerRule)
- [SendClientMessageToAllf](scripting/functions/SendClientMessageToAllf)
- [GameTextForAllf](scripting/functions/GameTextForAllf)
- [SendPlayerMessageToAllf](scripting/functions/SendPlayerMessageToAllf)
- [SendRconCommandf](scripting/functions/SendRconCommandf)
- [GameTextForAllf](scripting/functions/GameTextForAll)
- [SendPlayerMessageToAllf](scripting/functions/SendPlayerMessageToAll)
- [SendRconCommandf](scripting/functions/SendRconCommand)
- [GetRunningTimers](scripting/functions/GetRunningTimers)
- [GetVehicles](scripting/functions/GetVehicles)
- [GetPlayers](scripting/functions/GetPlayers)
Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/client/CommonClientIssues.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ If you have 2 monitors then there are 3 ways to solve this:

### My mouse doesn't work after exiting the pause menu

If your mouse seems to be frozen ingame while it (partially) works in the pause menu, then you should disable the multicore option [sa-mp.cfg](ClientCommands#file-sa-mpcfg "sa-mp.cfg") (set it to 0). Continuously tapping Escape until the mouse responds again may also work, but it is not as neat a solution.
If your mouse seems to be frozen ingame while it (partially) works in the pause menu, then you should disable the multicore option [sa-mp.cfg](sa-mp.cfg "sa-mp.cfg") (set it to 0). Continuously tapping Escape until the mouse responds again may also work, but it is not as neat a solution.

### The file dinput8.dll is missing

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/callbacks/OnFilterScriptInit.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public OnFilterScriptInit()

The following callbacks might be useful, as they're related to this callback in one way or another.

- [OnFilterSciptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
- [OnFilterScriptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
- [OnGameModeInit](OnGameModeInit): This callback is called when a gamemode starts.
- [OnGameModeExit](OnGameModeExit): This callback is called when a gamemode ends.
4 changes: 2 additions & 2 deletions frontend/docs/scripting/callbacks/OnGameModeExit.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This function can also be used in a filterscript to detect if the gamemode chang

When using OnGameModeExit in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur.

An example of this is excessive [RemoveBuildingForPlayer](RemoveBuildingForPlayer) calls during [OnGameModeInit](OnGameModeInit) which could result in a client crash. This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console.
An example of this is excessive [RemoveBuildingForPlayer](../functions/RemoveBuildingForPlayer) calls during [OnGameModeInit](OnGameModeInit) which could result in a client crash. This callback will NOT be called if the server crashes or the process is killed by other means, such as using the Linux kill command or pressing the close-button on the Windows console.

:::

Expand All @@ -41,7 +41,7 @@ The following callbacks might be useful, as they're related to this callback in

- [OnGameModeInit](OnGameModeInit): This callback is called when a gamemode starts.
- [OnFilterScriptInit](OnFilterScriptInit): This callback is called when a filterscript is loaded.
- [OnFilterSciptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
- [OnFilterScriptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.

## Related Functions

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/callbacks/OnGameModeInit.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ The following callbacks might be useful, as they're related to this callback in

- [OnGameModeExit](OnGameModeExit): This callback is called when a gamemode ends.
- [OnFilterScriptInit](OnFilterScriptInit): This callback is called when a filterscript is loaded.
- [OnFilterSciptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
- [OnFilterScriptExit](OnFilterScriptExit): This callback is called when a filterscript is unloaded.
2 changes: 1 addition & 1 deletion frontend/docs/scripting/callbacks/OnNPCRespawn.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following functions might be useful, as they're related to this callback in
- [NPC_Respawn](../functions/NPC_Respawn): Respawn an NPC
- [NPC_Spawn](../functions/NPC_Spawn): Spawn an NPC for the first time
- [NPC_SetHealth](../functions/NPC_SetHealth): Set NPC's health
- [NPC_SetPosition](../functions/NPC_SetPosition): Set NPC's position
- [NPC_SetPos](../functions/NPC_SetPos): Set NPC's position

## Related Callbacks

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/callbacks/OnPlayerDisconnect.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public OnPlayerDisconnect(playerid, reason)

:::tip

Some functions might not work correctly when used in this callback because the player is already disconnected when the callback is called. This means that you can't get unambiguous information from functions like [GetPlayerIp](GetPlayerIp) and [GetPlayerPos](GetPlayerPos).
Some functions might not work correctly when used in this callback because the player is already disconnected when the callback is called. This means that you can't get unambiguous information from functions like [GetPlayerIp](../functions/GetPlayerIp) and [GetPlayerPos](../functions/GetPlayerPos).

This issue is solved in open.mp server.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This function does not get called if the actor is set invulnerable (WHICH IS BY
The following callbacks might be useful, as they're related to this callback in one way or another.

- [OnActorStreamOut](OnActorStreamOut): This callback is called when an actor streams out by a player's client.
- [OnActorStreamIn](OnActorStreamOut): This callback is called when an actor streams in by a player's client.
- [OnActorStreamIn](OnActorStreamIn): This callback is called when an actor streams in by a player's client.

## Related Functions

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetPlayerCameraPos.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ Player's camera positions are only updated once a second, unless aiming.It is re
- [SetPlayerCameraPos](SetPlayerCameraPos): Set a player's camera position.
- [GetPlayerCameraZoom](GetPlayerCameraZoom): Get the zoom level of a player's camera.
- [GetPlayerCameraAspectRatio](GetPlayerCameraAspectRatio): Get the aspect ratio of a player's camera.
- [GetPlayerCameraMode](GetplayerCameraMode): Get a player's camera mode.
- [GetPlayerCameraMode](GetPlayerCameraMode): Get a player's camera mode.
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
- [GetPlayerZAim](GetPlayerZAim): Gets a player's Z Aim.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This function is disabled by default to save bandwidth. Use [EnablePlayerCameraT
## Related Functions

- [GetPlayerTargetActor](GetPlayerTargetActor): Gets id of an actor which is aimed by certain player.
- [GetPlayerCameraTargetPlayer](GetPlayerCameratargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraTargetPlayer](GetPlayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraTargetVehicle](GetPlayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetObject](GetPlayerCameraTargetObject): Get the ID of the object a player is looking at.
- [GetPlayerCameraFrontVector](GetPlayerCaemraFrontVector): Get the player's camera front vector
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ This function is disabled by default to save bandwidth. Use [EnablePlayerCameraT

## Related Functions

- [GetPlayerCameraTargetVehicle](GetplayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetPlayer](GetplayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraTargetVehicle](GetPlayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetPlayer](GetPlayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Do not confuse this function with GetPlayerTargetPlayer. GetPlayerTargetPlayer r

- [GetPlayerCameraTargetActor](GetPlayerCameraTargetActor): Get the ID of the actor (if any) a player is looking at.
- [GetPlayerCameraTargetVehicle](GetPlayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetObject](GetplayerCameraTargetObject): Get the ID of the object a player is looking at.
- [GetPlayerCameraFrontVector](GetPlayercameraFrontVector): Get the player's camera front vector
- [GetPlayerCameraTargetObject](GetPlayerCameraTargetObject): Get the ID of the object a player is looking at.
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ This function is disabled by default to save bandwidth. Use [EnablePlayerCameraT
## Related Functions

- [GetPlayerCameraTargetObject](GetPlayerCameraTargetObject): Get the ID of the object a player is looking at.
- [GetPlayerCameraTargetVehicle](GetplayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetPlayer](GetplayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraTargetVehicle](GetPlayerCameraTargetVehicle): Get the ID of the vehicle a player is looking at.
- [GetPlayerCameraTargetPlayer](GetPlayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ This function is disabled by default to save bandwidth. Use [EnablePlayerCameraT
## Related Functions

- [GetPlayerCameraTargetPlayer](GetPlayerCameraTargetPlayer): Get the ID of the player a player is looking at.
- [GetPlayerCameraTargetObject](GetplayerCameraTargetObject): Get the ID of the object a player is looking at.
- [GetPlayerCameraTargetObject](GetPlayerCameraTargetObject): Get the ID of the object a player is looking at.
- [EnablePlayerCameraTarget](EnablePlayerCameraTarget): Enable player camera targetting functions.
- [GetPlayerCameraFrontVector](GetPlayercameraFrontVector): Get the player's camera fron
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera fron
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetPlayerCameraZoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ This retrieves the zoom level of the GAME Camera (including Sniper scope), not t

## Related Functions

- [GetPlayerCameraAspectRatio](GetPlayerCameraAspectRation): Get the aspect ratio of a player's camera.
- [GetPlayerCameraAspectRatio](GetPlayerCameraAspectRatio): Get the aspect ratio of a player's camera.
- [GetPlayerCameraPos](GetPlayerCameraPos): Find out where the player's camera is.
- [GetPlayerCameraFrontVector](GetPlayerCameraFrontVector): Get the player's camera front vector
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetPlayerIp.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Save players' IPs under [OnPlayerConnect](../callbacks/OnPlayerConnect) if they
- [GetPlayerRawIp](GetPlayerRawIp): Get a player's Raw IP.
- [GetPlayerName](GetPlayerName): Get a player's name.
- [GetPlayerPing](GetPlayerPing): Get the ping of a player.
- [GetPlayerVersion](GetPlayerVerion): Get a player's client-version.
- [GetPlayerVersion](GetPlayerVersion): Get a player's client-version.

## Related Callbacks

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

:::tip

This function may not return accurate data when used under [OnPlayerDisconnect](OnPlayerDisconnect) if the player has quit normally. It usually returns accurate data if the player has been kicked or has timed out.
This function may not return accurate data when used under [OnPlayerDisconnect](../callbacks/OnPlayerDisconnect) if the player has quit normally. It usually returns accurate data if the player has been kicked or has timed out.

:::

Expand Down
2 changes: 1 addition & 1 deletion frontend/docs/scripting/functions/GetWeaponSlot.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public OnPlayerCommandText(playerid, cmdtext[])
- [GetPlayerWeaponData](GetPlayerWeaponData): Get the weapon and ammo in a specific player's weapon slot (e.g. the weapon in the 'SMG' slot).
- [GetPlayerAmmo](GetPlayerAmmo): Gets the amount of ammo in a player's current weapon.
- [SetPlayerArmedWeapon](SetPlayerArmedWeapon): Sets which weapon (that a player already has) the player is holding.
- [ResetPlayerWeapon](ResetPlayerWeapons): Removes all weapons from a player.
- [ResetPlayerWeapons](ResetPlayerWeapons): Removes all weapons from a player.
- [RemovePlayerWeapon](RemovePlayerWeapon): Remove a specified weapon from a player.

## Related Resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public OnPlayerConnect(playerid)
- [SetPlayerObjectRot](SetPlayerObjectRot): Set the rotation of a player object.
- [GetPlayerObjectPos](GetPlayerObjectPos): Locate a player object.
- [GetPlayerObjectRot](GetPlayerObjectRot): Check the rotation of a player object.
- [AttachPlayerObjectToPlayer](AttachObjectToPlayer): Attach a player object to a player.
- [AttachPlayerObjectToPlayer](AttachPlayerObjectToPlayer): Attach a player object to a player.
- [CreateObject](CreateObject): Create an object.
- [DestroyObject](DestroyObject): Destroy an object.
- [IsValidObject](IsValidObject): Checks if a certain object is vaild.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public OnPlayerCommandText(playerid, cmdtext[])
- [NPC_SetSurfingObject](NPC_SetSurfingObject): Sets the object an NPC is surfing on
- [NPC_GetSurfingVehicle](NPC_GetSurfingVehicle): Gets the vehicle an NPC is surfing on
- [NPC_GetSurfingPlayerObject](NPC_GetSurfingPlayerObject): Gets the player object an NPC is surfing on
- [NPC_GetSurfingOffset](NPC_GetSurfingOffsets): Gets the surfing offset for an NPC
- [NPC_GetSurfingOffsets](NPC_GetSurfingOffsets): Gets the surfing offset for an NPC
- [NPC_ResetSurfingData](NPC_ResetSurfingData): Resets all surfing data for an NPC

## Related Callbacks
Expand Down
Loading
Loading