diff --git a/docs/changelog.md b/docs/changelog.md index 077d1549e..2fbff3b58 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -406,11 +406,9 @@ Release Candidate 2 (RC2) of the open.mp server. - [GetVehicleRespawnDelay](scripting/functions/GetVehicleRespawnDelay) - [GetVehicleTower](scripting/functions/GetVehicleTower) - [GetVehicleCab](scripting/functions/GetVehicleCab) -- [GetVehicleOccupiedTick](scripting/functions/GetVehicleOccupiedTick) - [HasVehicleBeenOccupied](scripting/functions/HasVehicleBeenOccupied) - [IsVehicleOccupied](scripting/functions/IsVehicleOccupied) - [GetVehicleRespawnTick](scripting/functions/GetVehicleRespawnTick) -- [IsVehicleDead](scripting/functions/IsVehicleDead) - [ToggleVehicleSirenEnabled](scripting/functions/ToggleVehicleSirenEnabled) - [IsVehicleSirenEnabled](scripting/functions/IsVehicleSirenEnabled) - [GetVehicleModelCount](scripting/functions/GetVehicleModelCount) diff --git a/docs/scripting/callbacks/OnScriptCash.md b/docs/scripting/callbacks/OnScriptCash.md deleted file mode 100644 index 976f92637..000000000 --- a/docs/scripting/callbacks/OnScriptCash.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: OnScriptCash -description: This callback is called when something in-game like casinos give the player money. -tags: ["player"] ---- - -:::warning - -This callback is currently NOT working. - -::: - -## Description - -This callback is called when something in-game like casinos give the player money. - -| Name | Description | -|----------|-------------------------------------------------| -| playerid | The ID of the player who got cash from the game | -| amount | The amount of cash given or taken | -| source | Where the money came from | - -## Returns - -Unknown as this function does not currently work. - -## Examples - -```c -// Imaginary: - -public OnScriptCash(playerid, amount, source) -{ - if (source == SCRIPT_CASH_CASINO) - { - SendClientMessage(playerid, -1, "You have won $%d from the casino!", amount); - } - else if (source == SCRIPT_CASH_VENDING_MACHINE) - { - SendClientMessage(playerid, -1, "You buyed a coke from vending machine for $%d", amount); - } - return 1; -} -``` - -## Related Functions - -The following functions might be useful, as they're related to this callback in one way or another. - -- [GetPlayerMoney](../functions/GetPlayerMoney): Retrieves the amount of money a player has. diff --git a/docs/scripting/functions/CreatePickup.md b/docs/scripting/functions/CreatePickup.md index c75b9fc0f..1f3dbc8ca 100644 --- a/docs/scripting/functions/CreatePickup.md +++ b/docs/scripting/functions/CreatePickup.md @@ -75,7 +75,7 @@ Known Bug(s): - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + - [CreatePlayerPickup](CreatePlayerPickup): Creates a pickup which will be visible to only one player. - [DestroyPlayerPickup](DestroyPlayerPickup): Destroy a player-pickup. diff --git a/docs/scripting/functions/GetPickupModel.md b/docs/scripting/functions/GetPickupModel.md index 9c97c089a..745624c95 100644 --- a/docs/scripting/functions/GetPickupModel.md +++ b/docs/scripting/functions/GetPickupModel.md @@ -50,4 +50,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/GetPickupPos.md b/docs/scripting/functions/GetPickupPos.md index b6c30c922..c1d0e1895 100644 --- a/docs/scripting/functions/GetPickupPos.md +++ b/docs/scripting/functions/GetPickupPos.md @@ -62,4 +62,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/GetPickupType.md b/docs/scripting/functions/GetPickupType.md index e3c9b13c7..7dbf0f457 100644 --- a/docs/scripting/functions/GetPickupType.md +++ b/docs/scripting/functions/GetPickupType.md @@ -52,4 +52,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/GetPickupVirtualWorld.md b/docs/scripting/functions/GetPickupVirtualWorld.md index f1bf0dade..3f8b0087d 100644 --- a/docs/scripting/functions/GetPickupVirtualWorld.md +++ b/docs/scripting/functions/GetPickupVirtualWorld.md @@ -50,4 +50,4 @@ public OnGameModeInit() - [SetPickupVirtualWorld](SetPickupVirtualWorld): Sets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md b/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md deleted file mode 100644 index 10ac0eeba..000000000 --- a/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: GetPlayerLastSyncedTrailerID -description: Gets the player's last synced trailer ID. -tags: ["player", "vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Gets the player's last synced trailer ID. - -## Parameters - -| Name | Description | -|----------|-----------------------| -| playerid | The ID of the player. | - -## Return Values - -Returns the last synced trailer ID. - -## Examples - -```c -new trailerid = GetPlayerLastSyncedTrailerID(playerid); -``` - -## Related Functions - -- [GetPlayerLastSyncedVehicleID](GetPlayerLastSyncedVehicleID): Gets the player's last synced vehicle ID. diff --git a/docs/scripting/functions/GetPlayerLastSyncedVehicleID.md b/docs/scripting/functions/GetPlayerLastSyncedVehicleID.md deleted file mode 100644 index 3e128185e..000000000 --- a/docs/scripting/functions/GetPlayerLastSyncedVehicleID.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: GetPlayerLastSyncedVehicleID -description: Gets the player's last synced vehicle ID. -tags: ["player", "vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Gets the player's last synced vehicle ID. - -## Parameters - -| Name | Description | -|----------|-----------------------| -| playerid | The ID of the player. | - -## Return Values - -Returns the last synced vehicle ID. - -## Examples - -```c -new vehicleid = GetPlayerLastSyncedVehicleID(playerid); -``` - -## Related Functions - -- [GetPlayerLastSyncedTrailerID](GetPlayerLastSyncedTrailerID): Gets the player's last synced trailer ID. diff --git a/docs/scripting/functions/GetServerRuleFlags.md b/docs/scripting/functions/GetServerRuleFlags.md deleted file mode 100644 index 60826826f..000000000 --- a/docs/scripting/functions/GetServerRuleFlags.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: GetServerRuleFlags -description: Gets the flags of a server rule. -tags: ["rule"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Gets the flags of a server rule. - -## Return Values - -Returns the server rule flags. - -## Examples - -```c -public OnGameModeInit() -{ - AddServerRule("discord", "discord.gg/samp"); - SetServerRuleFlags("discord", 1); - - new E_SERVER_RULE_FLAGS:flags = GetServerRuleFlags("discord"); - printf("Flags: %d", _:flags); // Flags: 1 - return 1; -} -``` - -## Related Functions - -- [AddServerRule](AddServerRule): Add a server rule. -- [RemoveServerRule](RemoveServerRule): Remove the server rule. -- [IsValidServerRule](IsValidServerRule): Checks if the given server rule is valid. -- [SetServerRuleFlags](SetServerRuleFlags): Sets the flags of a server rule. diff --git a/docs/scripting/functions/GetVehicleOccupiedTick.md b/docs/scripting/functions/GetVehicleOccupiedTick.md deleted file mode 100644 index 71a4636a4..000000000 --- a/docs/scripting/functions/GetVehicleOccupiedTick.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: GetVehicleOccupiedTick -description: Get the occupied tick of a vehicle. -tags: ["vehicle"] ---- - - - -## Description - -Get the occupied tick of a vehicle. - -## Parameters - -| Name | Description | -|-----------|------------------------| -| vehicleid | The ID of the vehicle. | - -## Return Values - -Returns occupied tick in milliseconds. - -## Examples - -```c -public OnGameModeInit() -{ - new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 1, 8, 60); - - new occupiedTick = GetVehicleOccupiedTick(vehicleid); - printf("Vehicle ID %d occupied tick: %d ms", vehicleid, occupiedTick); - return 1; -} -``` - -## Related Functions - -- [SetVehicleOccupiedTick](SetVehicleOccupiedTick): Set the occupied tick of a vehicle. diff --git a/docs/scripting/functions/GetVehicleRespawnTick.md b/docs/scripting/functions/GetVehicleRespawnTick.md index dbca1f943..5ef39ad29 100644 --- a/docs/scripting/functions/GetVehicleRespawnTick.md +++ b/docs/scripting/functions/GetVehicleRespawnTick.md @@ -33,6 +33,3 @@ public OnGameModeInit() } ``` -## Related Functions - -- [SetVehicleRespawnTick](SetVehicleRespawnTick): Set the respawn tick of a vehicle. diff --git a/docs/scripting/functions/HasVehicleBeenOccupied.md b/docs/scripting/functions/HasVehicleBeenOccupied.md index c8cfdda2f..d7fedd90d 100644 --- a/docs/scripting/functions/HasVehicleBeenOccupied.md +++ b/docs/scripting/functions/HasVehicleBeenOccupied.md @@ -34,7 +34,3 @@ else // Vehicle is not occupied } ``` - -## Related Functions - -- [SetVehicleBeenOccupied](SetVehicleBeenOccupied): Sets the vehicle's occupancy. diff --git a/docs/scripting/functions/HideObjectForPlayer.md b/docs/scripting/functions/HideObjectForPlayer.md deleted file mode 100644 index 4e93b4211..000000000 --- a/docs/scripting/functions/HideObjectForPlayer.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: HideObjectForPlayer -description: Hide an object for a player. -tags: ["player", "object"] ---- - - - -## Description - -Hide an object for a player. - -## Parameters - -| Name | Description | -|----------|------------------------------------------| -| playerid | The ID of the player. | -| objectid | The ID of the object to hide for player. | - -## Returns - -`true` - The function was executed successfully. - -`false` - The function failed to execute. The playerid or objectid specified does not exist. - -## Examples - -```c -new gObject; - -public OnGameModeInit() -{ - gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000); - return 1; -} - -public OnPlayerConnect(playerid) -{ - HideObjectForPlayer(playerid, gObject); - return 1; -} -``` - -## Related Functions - -- [ShowObjectForPlayer](ShowObjectForPlayer): Show an object for a player. -- [IsObjectHiddenForPlayer](IsObjectHiddenForPlayer): Checks if an object is hidden for a player. -- [CreateObject](CreateObject): Create an object. diff --git a/docs/scripting/functions/HidePickupForPlayer.md b/docs/scripting/functions/HidePickupForPlayer.md index 12d147773..55124b300 100644 --- a/docs/scripting/functions/HidePickupForPlayer.md +++ b/docs/scripting/functions/HidePickupForPlayer.md @@ -54,4 +54,4 @@ public OnPlayerSpawn(playerid) - [SetPickupVirtualWorld](SetPickupVirtualWorld): Sets the virtual world ID of a pickup. - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/IsObjectHiddenForPlayer.md b/docs/scripting/functions/IsObjectHiddenForPlayer.md deleted file mode 100644 index 34586e19f..000000000 --- a/docs/scripting/functions/IsObjectHiddenForPlayer.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: IsObjectHiddenForPlayer -description: Checks if an object is hidden for a player. -tags: ["player", "object"] ---- - - - -## Description - -Checks if an object is hidden for a player. - -## Parameters - -| Name | Description | -|----------|--------------------------------| -| playerid | The ID of the player. | -| objectid | The ID of the object to check. | - -## Returns - -`true` - Object is hidden for the player. - -`false` - Object is not hidden for the player. - -## Examples - -```c -new gObject; - -public OnGameModeInit() -{ - gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000); - return 1; -} - -public OnPlayerConnect(playerid) -{ - HideObjectForPlayer(playerid, gObject); - return 1; -} - -public OnPlayerSpawn(playerid) -{ - if (IsObjectHiddenForPlayer(playerid, gObject)) - { - printf("Object %d is hidden for player %d", gObject, playerid); - } - return 1; -} -``` - -## Notes - -:::tip - -You can hide objects for a specific player with [HideObjectForPlayer](HideObjectForPlayer) function. - -::: - -## Related Functions - -- [HideObjectForPlayer](HideObjectForPlayer): Hide an object for a player. -- [ShowObjectForPlayer](ShowObjectForPlayer): Show an object for a player. -- [CreateObject](CreateObject): Create an object. diff --git a/docs/scripting/functions/IsPickupHiddenForPlayer.md b/docs/scripting/functions/IsPickupHiddenForPlayer.md index 8c3fc1aea..da27cf0bb 100644 --- a/docs/scripting/functions/IsPickupHiddenForPlayer.md +++ b/docs/scripting/functions/IsPickupHiddenForPlayer.md @@ -59,4 +59,4 @@ public OnPlayerSpawn(playerid) - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/IsPickupStreamedIn.md b/docs/scripting/functions/IsPickupStreamedIn.md index 07c93e16a..5be7b3339 100644 --- a/docs/scripting/functions/IsPickupStreamedIn.md +++ b/docs/scripting/functions/IsPickupStreamedIn.md @@ -57,4 +57,4 @@ public OnPlayerDeath(playerid, killerid, WEAPON:reason) - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/IsValidPickup.md b/docs/scripting/functions/IsValidPickup.md index b53e5afb2..9fb4a7db3 100644 --- a/docs/scripting/functions/IsValidPickup.md +++ b/docs/scripting/functions/IsValidPickup.md @@ -52,4 +52,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/IsVehicleOccupied.md b/docs/scripting/functions/IsVehicleOccupied.md index c44558712..d203b6bdb 100644 --- a/docs/scripting/functions/IsVehicleOccupied.md +++ b/docs/scripting/functions/IsVehicleOccupied.md @@ -34,7 +34,3 @@ else // Vehicle is not occupied } ``` - -## Related Functions - -- [SetVehicleBeenOccupied](SetVehicleBeenOccupied): Sets the vehicle's occupancy. diff --git a/docs/scripting/functions/SetPickupForPlayer.md b/docs/scripting/functions/SetPickupForPlayer.md deleted file mode 100644 index 62977ca62..000000000 --- a/docs/scripting/functions/SetPickupForPlayer.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: SetPickupForPlayer -description: Adjusts the pickup model, type, and position for a specific player. -tags: ["player", "pickup"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Adjusts the pickup model, type, and position for a specific player. - -| Name | Description | -|----------|-----------------------------------------------------| -| playerid | The ID of the player. | -| pickupid | The ID of the pickup. | -| model | The [model](../resources/pickupids) to set. | -| type | The [pickup type](../resources/pickuptypes) to set. | -| Float:x | The x coordinate to set the pickup at. | -| Float:y | The y coordinate to set the pickup at. | -| Float:z | The z coordinate to set the pickup at. | - -## Returns - -This function always returns **true**. - -## Examples - -```c -new g_Pickup; - -public OnGameModeInit() -{ - g_Pickup = CreatePickup(1239, 1, 1686.6160, 1455.4277, 10.7705, -1); - return 1; -} - -public OnPlayerSpawn(playerid) -{ - new Float:x, Float:y, Float:z; - GetPlayerPos(playerid, x, y, z); - SetPickupForPlayer(playerid, g_Pickup, 1210, 2, x + 2.0, y + 2.0, z); - return 1; -} -``` - -## Related Functions - -- [CreatePickup](CreatePickup): Create a pickup. -- [AddStaticPickup](AddStaticPickup): Add a static pickup. -- [DestroyPickup](DestroyPickup): Destroy a pickup. -- [IsValidPickup](IsValidPickup): Checks if a pickup is valid. -- [IsPickupStreamedIn](IsPickupStreamedIn): Checks if a pickup is streamed in for a specific player. -- [IsPickupHiddenForPlayer](IsPickupHiddenForPlayer): Checks if a pickup is hidden for a specific player. -- [SetPickupPos](SetPickupPos): Sets the position of a pickup. -- [GetPickupPos](GetPickupPos): Gets the coordinates of a pickup. -- [SetPickupModel](SetPickupModel): Sets the model of a pickup. -- [GetPickupModel](GetPickupModel): Gets the model ID of a pickup. -- [SetPickupType](SetPickupType): Sets the type of a pickup. -- [GetPickupType](GetPickupType): Gets the type of a pickup. -- [SetPickupVirtualWorld](SetPickupVirtualWorld): Sets the virtual world ID of a pickup. -- [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. -- [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. -- [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. diff --git a/docs/scripting/functions/SetPickupModel.md b/docs/scripting/functions/SetPickupModel.md index d220829d4..2cb25c441 100644 --- a/docs/scripting/functions/SetPickupModel.md +++ b/docs/scripting/functions/SetPickupModel.md @@ -51,4 +51,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/SetPickupPos.md b/docs/scripting/functions/SetPickupPos.md index bc82857cc..0de4a6c28 100644 --- a/docs/scripting/functions/SetPickupPos.md +++ b/docs/scripting/functions/SetPickupPos.md @@ -53,4 +53,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/SetPickupType.md b/docs/scripting/functions/SetPickupType.md index 60ed18b07..4fe4bc350 100644 --- a/docs/scripting/functions/SetPickupType.md +++ b/docs/scripting/functions/SetPickupType.md @@ -51,4 +51,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/SetPickupVirtualWorld.md b/docs/scripting/functions/SetPickupVirtualWorld.md index 28c5f2e90..0416b5fd8 100644 --- a/docs/scripting/functions/SetPickupVirtualWorld.md +++ b/docs/scripting/functions/SetPickupVirtualWorld.md @@ -50,4 +50,4 @@ public OnGameModeInit() - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [ShowPickupForPlayer](ShowPickupForPlayer): Shows a pickup for a specific player. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/scripting/functions/SetServerRuleFlags.md b/docs/scripting/functions/SetServerRuleFlags.md deleted file mode 100644 index 03c075510..000000000 --- a/docs/scripting/functions/SetServerRuleFlags.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: SetServerRuleFlags -description: Sets the flags of a server rule. -tags: ["rule"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Sets the flags of a server rule. - -## Parameters - -| Name | Description | -|---------------------------|-----------------------| -| const rule[] | The server rule name. | -| E_SERVER_RULE_FLAGS:flags | The flags to set. | - -## Returns - -Returns **true** if the function executed successfully, otherwise **false**. - -## Examples - -```c -public OnGameModeInit() -{ - AddServerRule("discord", "discord.gg/samp"); - SetServerRuleFlags("discord", 1); - return 1; -} -``` - -## Related Functions - -- [AddServerRule](AddServerRule): Add a server rule. -- [RemoveServerRule](RemoveServerRule): Remove the server rule. -- [IsValidServerRule](IsValidServerRule): Checks if the given server rule is valid. -- [GetServerRuleFlags](GetServerRuleFlags): Gets the flags of a server rule. diff --git a/docs/scripting/functions/SetVehicleBeenOccupied.md b/docs/scripting/functions/SetVehicleBeenOccupied.md deleted file mode 100644 index fe170c967..000000000 --- a/docs/scripting/functions/SetVehicleBeenOccupied.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: SetVehicleBeenOccupied -description: Sets the vehicle's occupancy. -tags: ["vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Sets the vehicle's occupancy. - -## Parameters - -| Name | Description | -|---------------|--------------------------------------| -| vehicleid | The ID of the vehicle. | -| bool:occupied | **true**: occupied - **false**: not occupied | - -## Examples - -```c -SetVehicleBeenOccupied(vehicleid, true); -``` - -## Related Functions - -- [HasVehicleBeenOccupied](HasVehicleBeenOccupied): Check if a vehicle is occupied. diff --git a/docs/scripting/functions/SetVehicleDead.md b/docs/scripting/functions/SetVehicleDead.md deleted file mode 100644 index ce841a029..000000000 --- a/docs/scripting/functions/SetVehicleDead.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: SetVehicleDead -description: Sets the vehicle to dead. -tags: ["vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Sets the vehicle to dead. - -## Parameters - -| Name | Description | -|-----------|--------------------------------------| -| vehicleid | The ID of the vehicle. | -| bool:dead | **true**: dead - **false**: not dead | - -## Examples - -```c -SetVehicleDead(vehicleid, true); -``` - -## Related Functions - -- [IsVehicleDead](IsVehicleDead): Check if a vehicle is dead. diff --git a/docs/scripting/functions/SetVehicleOccupiedTick.md b/docs/scripting/functions/SetVehicleOccupiedTick.md deleted file mode 100644 index 7889508c8..000000000 --- a/docs/scripting/functions/SetVehicleOccupiedTick.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: SetVehicleOccupiedTick -description: Set the occupied tick of a vehicle. -tags: ["vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Set the occupied tick of a vehicle. - -## Parameters - -| Name | Description | -|-----------|------------------------| -| vehicleid | The ID of the vehicle. | -| ticks | The ticks to set. | - -## Return Values - -**true** - Function executed successfully. - -**false** - Function failed to execute. - -## Examples - -```c -public OnGameModeInit() -{ - new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 1, 8, 60); - - SetVehicleOccupiedTick(vehicleid, 300); - return 1; -} -``` - -## Related Functions - -- [GetVehicleOccupiedTick](GetVehicleOccupiedTick): Get the occupied tick of a vehicle. diff --git a/docs/scripting/functions/SetVehicleRespawnTick.md b/docs/scripting/functions/SetVehicleRespawnTick.md deleted file mode 100644 index 619450127..000000000 --- a/docs/scripting/functions/SetVehicleRespawnTick.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -title: SetVehicleRespawnTick -description: Set the respawn tick of a vehicle. -tags: ["vehicle"] ---- - - - -:::warning - -This function has not yet been implemented. - -::: - -## Description - -Set the respawn tick of a vehicle. - -## Parameters - -| Name | Description | -|-----------|------------------------| -| vehicleid | The ID of the vehicle. | -| ticks | The ticks to set. | - -## Return Values - -**true** - Function executed successfully. - -**false** - Function failed to execute. - -## Examples - -```c -public OnGameModeInit() -{ - new vehicleid = CreateVehicle(560, 2096.1917, -1328.5150, 25.1059, 0.0000, 1, 8, 60); - - SetVehicleRespawnTick(vehicleid, 300); - return 1; -} -``` - -## Related Functions - -- [GetVehicleRespawnTick](GetVehicleRespawnTick): Get the respawn tick of a vehicle. diff --git a/docs/scripting/functions/ShowObjectForPlayer.md b/docs/scripting/functions/ShowObjectForPlayer.md deleted file mode 100644 index 1d81d8ff5..000000000 --- a/docs/scripting/functions/ShowObjectForPlayer.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: ShowObjectForPlayer -description: Show an object for a player. -tags: ["player", "object"] ---- - - - -## Description - -Show an object for a player that is hidden with [HideObjectForPlayer](HideObjectForPlayer) function. - -## Parameters - -| Name | Description | -|----------|------------------------------------------| -| playerid | The ID of the player. | -| objectid | The ID of the object to show for player. | - -## Returns - -`true` - The function was executed successfully. - -`false` - The function failed to execute. The playerid or objectid specified does not exist. - -## Examples - -```c -new gObject; - -public OnGameModeInit() -{ - gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000); - return 1; -} - -public OnPlayerConnect(playerid) -{ - HideObjectForPlayer(playerid, gObject); - return 1; -} - -public OnPlayerSpawn(playerid) -{ - ShowObjectForPlayer(playerid, gObject); - return 1; -} -``` - -## Related Functions - -- [HideObjectForPlayer](HideObjectForPlayer): Hide an object for a player. -- [IsObjectHiddenForPlayer](IsObjectHiddenForPlayer): Checks if an object is hidden for a player. -- [CreateObject](CreateObject): Create an object. diff --git a/docs/scripting/functions/ShowPickupForPlayer.md b/docs/scripting/functions/ShowPickupForPlayer.md index 9dca0bbc4..c1f2343e9 100644 --- a/docs/scripting/functions/ShowPickupForPlayer.md +++ b/docs/scripting/functions/ShowPickupForPlayer.md @@ -54,4 +54,4 @@ public OnPlayerSpawn(playerid) - [SetPickupVirtualWorld](SetPickupVirtualWorld): Sets the virtual world ID of a pickup. - [GetPickupVirtualWorld](GetPickupVirtualWorld): Gets the virtual world ID of a pickup. - [HidePickupForPlayer](HidePickupForPlayer): Hides a pickup for a specific player. -- [SetPickupForPlayer](SetPickupForPlayer): Adjusts the pickup model, type, and position for a specific player. + diff --git a/docs/server/omp-functions.md b/docs/server/omp-functions.md index bd1f18108..3bdd6d267 100644 --- a/docs/server/omp-functions.md +++ b/docs/server/omp-functions.md @@ -23,7 +23,6 @@ This page contains all the functions and callbacks that were added in open.mp | [IsPlayerSpawned](../scripting/functions/IsPlayerSpawned) | | [GetPlayerHydraReactorAngle](../scripting/functions/GetPlayerHydraReactorAngle) | | [GetPlayerLandingGearState](../scripting/functions/GetPlayerLandingGearState) | -| [GetPlayerLastSyncedTrailerID](../scripting/functions/GetPlayerLastSyncedTrailerID) | | [GetPlayerSirenState](../scripting/functions/GetPlayerSirenState) | | [GetPlayerTrainSpeed](../scripting/functions/GetPlayerTrainSpeed) | | [IsPlayerInModShop](../scripting/functions/IsPlayerInModShop) | @@ -87,14 +86,11 @@ This page contains all the functions and callbacks that were added in open.mp | [GetPlayerSurfingPlayerObjectID](../scripting/functions/GetPlayerSurfingPlayerObjectID) | | [HasObjectCameraCollision](../scripting/functions/HasObjectCameraCollision) | | [HasPlayerObjectCameraCollision](../scripting/functions/HasPlayerObjectCameraCollision) | -| [IsObjectHiddenForPlayer](../scripting/functions/IsObjectHiddenForPlayer) | | [IsObjectMaterialSlotUsed](../scripting/functions/IsObjectMaterialSlotUsed) | | [IsPlayerObjectMaterialSlotUsed](../scripting/functions/IsPlayerObjectMaterialSlotUsed) | | [SetObjectMoveSpeed](../scripting/functions/SetObjectMoveSpeed) | | [SetObjectsDefaultCameraCollision](../scripting/functions/SetObjectsDefaultCameraCollision) | | [SetPlayerObjectMoveSpeed](../scripting/functions/SetPlayerObjectMoveSpeed) | -| [HideObjectForPlayer](../scripting/functions/HideObjectForPlayer) | -| [ShowObjectForPlayer](../scripting/functions/ShowObjectForPlayer) | ## Pickup @@ -115,7 +111,6 @@ This page contains all the functions and callbacks that were added in open.mp | [IsPlayerPickupStreamedIn](../scripting/functions/IsPlayerPickupStreamedIn) | | [IsValidPickup](../scripting/functions/IsValidPickup) | | [IsValidPlayerPickup](../scripting/functions/IsValidPlayerPickup) | -| [SetPickupForPlayer](../scripting/functions/SetPickupForPlayer) | | [SetPickupModel](../scripting/functions/SetPickupModel) | | [SetPickupPos](../scripting/functions/SetPickupPos) | | [SetPickupType](../scripting/functions/SetPickupType) | @@ -137,7 +132,6 @@ This page contains all the functions and callbacks that were added in open.mp | Name | |---------------------------------------------------------------------------------------------------------| | [ChangeVehicleColours](../scripting/functions/ChangeVehicleColours) | -| [GetPlayerLastSyncedVehicleID](../scripting/functions/GetPlayerLastSyncedVehicleID) | | [GetRandomVehicleColourPair](../scripting/functions/GetRandomVehicleColourPair) | | [GetVehicleCab](../scripting/functions/GetVehicleCab) | | [GetVehicleTower](../scripting/functions/GetVehicleTower) | @@ -151,26 +145,22 @@ This page contains all the functions and callbacks that were added in open.mp | [GetVehicleModelCount](../scripting/functions/GetVehicleModelCount) | | [GetVehicleModelsUsed](../scripting/functions/GetVehicleModelsUsed) | | [GetVehicleNumberPlate](../scripting/functions/GetVehicleNumberPlate) | -| [GetVehicleOccupiedTick](../scripting/functions/GetVehicleOccupiedTick) | | [GetVehiclePaintjob](../scripting/functions/GetVehiclePaintjob) | | [GetVehicleRespawnDelay](../scripting/functions/GetVehicleRespawnDelay) | | [GetVehicleRespawnTick](../scripting/functions/GetVehicleRespawnTick) | | [GetVehicleSirenState](../scripting/functions/GetVehicleSirenState) | | [GetVehicleSpawnInfo](../scripting/functions/GetVehicleSpawnInfo) | | [GetVehicleTrainSpeed](../scripting/functions/GetVehicleTrainSpeed) | -| [SetVehicleBeenOccupied](../scripting/functions/SetVehicleBeenOccupied) | | [HasVehicleBeenOccupied](../scripting/functions/HasVehicleBeenOccupied) | | [IsVehicleOccupied](../scripting/functions/IsVehicleOccupied) | | [HideVehicle](../scripting/functions/HideVehicle) | | [ShowVehicle](../scripting/functions/ShowVehicle) | | [IsVehicleHidden](../scripting/functions/IsVehicleHidden) | -| [SetVehicleDead](../scripting/functions/SetVehicleDead) | -| [IsVehicleDead](../scripting/functions/IsVehicleDead) | + + | [IsVehicleSirenEnabled](../scripting/functions/IsVehicleSirenEnabled) | -| [SetVehicleOccupiedTick](../scripting/functions/SetVehicleOccupiedTick) | | [SetVehicleParamsSirenState](../scripting/functions/SetVehicleParamsSirenState) | | [SetVehicleRespawnDelay](../scripting/functions/SetVehicleRespawnDelay) | -| [SetVehicleRespawnTick](../scripting/functions/SetVehicleRespawnTick) | | [SetVehicleSpawnInfo](../scripting/functions/SetVehicleSpawnInfo) | | [ToggleVehicleSirenEnabled](../scripting/functions/ToggleVehicleSirenEnabled) | | [VehicleColourIndexToColour](../scripting/functions/VehicleColourIndexToColour) | @@ -402,8 +392,6 @@ This page contains all the functions and callbacks that were added in open.mp | [RemoveServerRule](../scripting/functions/RemoveServerRule) | | [IsValidServerRule](../scripting/functions/IsValidServerRule) | | [SetServerRule](../scripting/functions/SetServerRule) | -| [SetServerRuleFlags](../scripting/functions/SetServerRuleFlags) | -| [GetServerRuleFlags](../scripting/functions/GetServerRuleFlags) | ## Timer diff --git a/docs/translations/bs/changelog.md b/docs/translations/bs/changelog.md index cce0cc3de..7294f668c 100644 --- a/docs/translations/bs/changelog.md +++ b/docs/translations/bs/changelog.md @@ -406,11 +406,10 @@ Release Candidate 2 (RC2) open.mp servera. - [GetVehicleRespawnDelay](scripting/functions/GetVehicleRespawnDelay) - [GetVehicleTower](scripting/functions/GetVehicleTower) - [GetVehicleCab](scripting/functions/GetVehicleCab) -- [GetVehicleOccupiedTick](scripting/functions/GetVehicleOccupiedTick) - [HasVehicleBeenOccupied](scripting/functions/HasVehicleBeenOccupied) - [IsVehicleOccupied](scripting/functions/IsVehicleOccupied) - [GetVehicleRespawnTick](scripting/functions/GetVehicleRespawnTick) -- [IsVehicleDead](scripting/functions/IsVehicleDead) + - [ToggleVehicleSirenEnabled](scripting/functions/ToggleVehicleSirenEnabled) - [IsVehicleSirenEnabled](scripting/functions/IsVehicleSirenEnabled) - [GetVehicleModelCount](scripting/functions/GetVehicleModelCount) diff --git a/docs/translations/bs/scripting/functions/IsObjectHiddenForPlayer.md b/docs/translations/bs/scripting/functions/IsObjectHiddenForPlayer.md deleted file mode 100644 index ac4eea26e..000000000 --- a/docs/translations/bs/scripting/functions/IsObjectHiddenForPlayer.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: IsObjectHiddenForPlayer -description: Provjerava da li je objekat sakriven za igrača. -tags: ["player", "object"] ---- - - - -## Deskripcija - -Provjerava da li je objekat sakriven za igrača. - -## Parametri - -| Ime | Deskripcija | -|----------|--------------------------------| -| playerid | ID igrača. | -| objectid | ID objekta za provjeriti. | - -## Returnovi - -`true` - Objekat je sakriven za igrača. - -`false` - Objekat nije sakriven za igrača. - -## Primjeri - -```c -new gObject; - -public OnGameModeInit() -{ - gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000); - return 1; -} - -public OnPlayerConnect(playerid) -{ - HideObjectForPlayer(playerid, gObject); - return 1; -} - -public OnPlayerSpawn(playerid) -{ - if (IsObjectHiddenForPlayer(playerid, gObject)) - { - printf("Objekat %d je sakriven za igrača %d", gObject, playerid); - } - return 1; -} -``` - -## Zabilješke - -:::tip - -Možeš sakriti objekte za određenog igrača pomoću [HideObjectForPlayer](HideObjectForPlayer) funkcije. - -::: - -## Srodne Funkcije - -- [HideObjectForPlayer](HideObjectForPlayer): Sakriva objekat igraču. -- [ShowObjectForPlayer](ShowObjectForPlayer): Prikaže objekat igraču. -- [CreateObject](CreateObject): Kreira objekat. diff --git a/docs/translations/bs/scripting/functions/ShowObjectForPlayer.md b/docs/translations/bs/scripting/functions/ShowObjectForPlayer.md deleted file mode 100644 index dfe887a8b..000000000 --- a/docs/translations/bs/scripting/functions/ShowObjectForPlayer.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: ShowObjectForPlayer -description: Prikaže objekat igraču. -tags: ["player", "object"] ---- - - - -## Deskripcija - -Prikazuje objekat igraču koji je sakriven sa [HideObjectForPlayer](HideObjectForPlayer) funkcijom. - -## Parametri - -| Ime | Deskripcija | -|----------|------------------------------------------| -| playerid | ID igrača. | -| objectid | ID objekta da se prikaže igraču. | - -## Returnovi - -`true` - Funkcija uspješno izvršena. - -`false` - Funkcija neuspješno izvršena. Navedeni playerid ili objectid ne postoji. - -## Primjeri - -```c -new gObject; - -public OnGameModeInit() -{ - gObject = CreateObject(1431, 921.12201, -1206.78613, 16.52670, 0.00000, 0.00000, 90.00000); - return 1; -} - -public OnPlayerConnect(playerid) -{ - HideObjectForPlayer(playerid, gObject); - return 1; -} - -public OnPlayerSpawn(playerid) -{ - ShowObjectForPlayer(playerid, gObject); - return 1; -} -``` - -## Srodne Funkcije - -- [HideObjectForPlayer](HideObjectForPlayer): Sakrije objekat igraču. -- [IsObjectHiddenForPlayer](IsObjectHiddenForPlayer): Provjerava da li je objekat sakriven za igrača. -- [CreateObject](CreateObject): Kreira objekat. diff --git a/docs/translations/fr/scripting/Callbacks/OnScriptCash.md b/docs/translations/fr/scripting/Callbacks/OnScriptCash.md deleted file mode 100644 index e5c4f8fce..000000000 --- a/docs/translations/fr/scripting/Callbacks/OnScriptCash.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: OnScriptCash -description: Ce rappel est déclenché lorsque quelque chose dans le jeu, comme les casinos, donne de l'argent au joueur. -tags: ["player"] ---- - -:::warning - -Ce rappel NE FONCTIONNE PAS. - -::: - -## Description - -Ce rappel est déclenché lorsque quelque chose dans le jeu, comme les casinos, donne de l'argent au joueur. - -| Nom | Description | -|----------|----------------------------------------------------| -| playerid | L'ID du joueur qui a reçu de l'argent du jeu | -| amount | Le montant d'argent donné ou retiré | -| source | L'origine de l'argent | - -## Retours - -Inconnu car cette fonction ne fonctionne actuellement pas. - -## Exemples - -```c -// Imaginaire : - -public OnScriptCash(playerid, amount, source) -{ - if (source == SCRIPT_CASH_CASINO) - { - SendClientMessage(playerid, -1, "Vous avez gagné $%d au casino !", amount); - } - else if (source == SCRIPT_CASH_VENDING_MACHINE) - { - SendClientMessage(playerid, -1, "Vous avez acheté un soda à la machine distributrice pour $%d", amount); - } - return 1; -} -``` - -## Fonctions Relatives - -Les fonctions suivantes pourraient être utiles, car elles sont liées à ce rappel d'une manière ou d'une autre. - -- [GetPlayerMoney](../functions/GetPlayerMoney): Récupère le montant d'argent qu'un joueur possède. diff --git a/docs/translations/sr/changelog.md b/docs/translations/sr/changelog.md index f8eddc2eb..c151b806a 100644 --- a/docs/translations/sr/changelog.md +++ b/docs/translations/sr/changelog.md @@ -408,11 +408,10 @@ Release Candidate 2 (RC2) open.mp сервера. - [GetVehicleRespawnDelay](scripting/functions/GetVehicleRespawnDelay) - [GetVehicleTower](scripting/functions/GetVehicleTower) - [GetVehicleCab](scripting/functions/GetVehicleCab) -- [GetVehicleOccupiedTick](scripting/functions/GetVehicleOccupiedTick) - [HasVehicleBeenOccupied](scripting/functions/HasVehicleBeenOccupied) - [IsVehicleOccupied](scripting/functions/IsVehicleOccupied) - [GetVehicleRespawnTick](scripting/functions/GetVehicleRespawnTick) -- [IsVehicleDead](scripting/functions/IsVehicleDead) + - [ToggleVehicleSirenEnabled](scripting/functions/ToggleVehicleSirenEnabled) - [IsVehicleSirenEnabled](scripting/functions/IsVehicleSirenEnabled) - [GetVehicleModelCount](scripting/functions/GetVehicleModelCount) diff --git a/docs/translations/ta/server/omp-functions.md b/docs/translations/ta/server/omp-functions.md index 2a9f72cb2..3606680bf 100644 --- a/docs/translations/ta/server/omp-functions.md +++ b/docs/translations/ta/server/omp-functions.md @@ -23,7 +23,6 @@ description: புதிய செயல்பாடுகள் மற்ற | [IsPlayerSpawned](../scripting/functions/IsPlayerSpawned) | | [GetPlayerHydraReactorAngle](../scripting/functions/GetPlayerHydraReactorAngle) | | [GetPlayerLandingGearState](../scripting/functions/GetPlayerLandingGearState) | -| [GetPlayerLastSyncedTrailerID](../scripting/functions/GetPlayerLastSyncedTrailerID) | | [GetPlayerSirenState](../scripting/functions/GetPlayerSirenState) | | [GetPlayerTrainSpeed](../scripting/functions/GetPlayerTrainSpeed) | | [IsPlayerInModShop](../scripting/functions/IsPlayerInModShop) | @@ -85,14 +84,11 @@ description: புதிய செயல்பாடுகள் மற்ற | [GetPlayerSurfingPlayerObjectID](../scripting/functions/GetPlayerSurfingPlayerObjectID) | | [HasObjectCameraCollision](../scripting/functions/HasObjectCameraCollision) | | [HasPlayerObjectCameraCollision](../scripting/functions/HasPlayerObjectCameraCollision) | -| [IsObjectHiddenForPlayer](../scripting/functions/IsObjectHiddenForPlayer) | | [IsObjectMaterialSlotUsed](../scripting/functions/IsObjectMaterialSlotUsed) | | [IsPlayerObjectMaterialSlotUsed](../scripting/functions/IsPlayerObjectMaterialSlotUsed) | | [SetObjectMoveSpeed](../scripting/functions/SetObjectMoveSpeed) | | [SetObjectsDefaultCameraCollision](../scripting/functions/SetObjectsDefaultCameraCollision) | | [SetPlayerObjectMoveSpeed](../scripting/functions/SetPlayerObjectMoveSpeed) | -| [HideObjectForPlayer](../scripting/functions/HideObjectForPlayer) | -| [ShowObjectForPlayer](../scripting/functions/ShowObjectForPlayer) | ## Pickup @@ -113,7 +109,6 @@ description: புதிய செயல்பாடுகள் மற்ற | [IsPlayerPickupStreamedIn](../scripting/functions/IsPlayerPickupStreamedIn) | | [IsValidPickup](../scripting/functions/IsValidPickup) | | [IsValidPlayerPickup](../scripting/functions/IsValidPlayerPickup) | -| [SetPickupForPlayer](../scripting/functions/SetPickupForPlayer) | | [SetPickupModel](../scripting/functions/SetPickupModel) | | [SetPickupPos](../scripting/functions/SetPickupPos) | | [SetPickupType](../scripting/functions/SetPickupType) | @@ -135,7 +130,6 @@ description: புதிய செயல்பாடுகள் மற்ற | Name | |---------------------------------------------------------------------------------------------------------| | [ChangeVehicleColours](../scripting/functions/ChangeVehicleColours) | -| [GetPlayerLastSyncedVehicleID](../scripting/functions/GetPlayerLastSyncedVehicleID) | | [GetRandomVehicleColourPair](../scripting/functions/GetRandomVehicleColourPair) | | [GetVehicleCab](../scripting/functions/GetVehicleCab) | | [GetVehicleTower](../scripting/functions/GetVehicleTower) | @@ -149,26 +143,22 @@ description: புதிய செயல்பாடுகள் மற்ற | [GetVehicleModelCount](../scripting/functions/GetVehicleModelCount) | | [GetVehicleModelsUsed](../scripting/functions/GetVehicleModelsUsed) | | [GetVehicleNumberPlate](../scripting/functions/GetVehicleNumberPlate) | -| [GetVehicleOccupiedTick](../scripting/functions/GetVehicleOccupiedTick) | | [GetVehiclePaintjob](../scripting/functions/GetVehiclePaintjob) | | [GetVehicleRespawnDelay](../scripting/functions/GetVehicleRespawnDelay) | | [GetVehicleRespawnTick](../scripting/functions/GetVehicleRespawnTick) | | [GetVehicleSirenState](../scripting/functions/GetVehicleSirenState) | | [GetVehicleSpawnInfo](../scripting/functions/GetVehicleSpawnInfo) | | [GetVehicleTrainSpeed](../scripting/functions/GetVehicleTrainSpeed) | -| [SetVehicleBeenOccupied](../scripting/functions/SetVehicleBeenOccupied) | | [HasVehicleBeenOccupied](../scripting/functions/HasVehicleBeenOccupied) | | [IsVehicleOccupied](../scripting/functions/IsVehicleOccupied) | | [HideVehicle](../scripting/functions/HideVehicle) | | [ShowVehicle](../scripting/functions/ShowVehicle) | | [IsVehicleHidden](../scripting/functions/IsVehicleHidden) | -| [SetVehicleDead](../scripting/functions/SetVehicleDead) | -| [IsVehicleDead](../scripting/functions/IsVehicleDead) | + + | [IsVehicleSirenEnabled](../scripting/functions/IsVehicleSirenEnabled) | -| [SetVehicleOccupiedTick](../scripting/functions/SetVehicleOccupiedTick) | | [SetVehicleParamsSirenState](../scripting/functions/SetVehicleParamsSirenState) | | [SetVehicleRespawnDelay](../scripting/functions/SetVehicleRespawnDelay) | -| [SetVehicleRespawnTick](../scripting/functions/SetVehicleRespawnTick) | | [SetVehicleSpawnInfo](../scripting/functions/SetVehicleSpawnInfo) | | [ToggleVehicleSirenEnabled](../scripting/functions/ToggleVehicleSirenEnabled) | | [VehicleColourIndexToColour](../scripting/functions/VehicleColourIndexToColour) | @@ -400,8 +390,6 @@ description: புதிய செயல்பாடுகள் மற்ற | [RemoveServerRule](../scripting/functions/RemoveServerRule) | | [IsValidServerRule](../scripting/functions/IsValidServerRule) | | [SetServerRule](../scripting/functions/SetServerRule) | -| [SetServerRuleFlags](../scripting/functions/SetServerRuleFlags) | -| [GetServerRuleFlags](../scripting/functions/GetServerRuleFlags) | ## Timer diff --git a/docs/translations/tr/server/omp-functions.md b/docs/translations/tr/server/omp-functions.md index 8130ba72f..e97f74605 100644 --- a/docs/translations/tr/server/omp-functions.md +++ b/docs/translations/tr/server/omp-functions.md @@ -23,7 +23,6 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | [IsPlayerSpawned](../scripting/functions/IsPlayerSpawned) | | [GetPlayerHydraReactorAngle](../scripting/functions/GetPlayerHydraReactorAngle) | | [GetPlayerLandingGearState](../scripting/functions/GetPlayerLandingGearState) | -| [GetPlayerLastSyncedTrailerID](../scripting/functions/GetPlayerLastSyncedTrailerID) | | [GetPlayerSirenState](../scripting/functions/GetPlayerSirenState) | | [GetPlayerTrainSpeed](../scripting/functions/GetPlayerTrainSpeed) | | [IsPlayerInModShop](../scripting/functions/IsPlayerInModShop) | @@ -83,14 +82,11 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | [GetPlayerSurfingPlayerObjectID](../scripting/functions/GetPlayerSurfingPlayerObjectID) | | [HasObjectCameraCollision](../scripting/functions/HasObjectCameraCollision) | | [HasPlayerObjectCameraCollision](../scripting/functions/HasPlayerObjectCameraCollision) | -| [IsObjectHiddenForPlayer](../scripting/functions/IsObjectHiddenForPlayer) | | [IsObjectMaterialSlotUsed](../scripting/functions/IsObjectMaterialSlotUsed) | | [IsPlayerObjectMaterialSlotUsed](../scripting/functions/IsPlayerObjectMaterialSlotUsed) | | [SetObjectMoveSpeed](../scripting/functions/SetObjectMoveSpeed) | | [SetObjectsDefaultCameraCollision](../scripting/functions/SetObjectsDefaultCameraCollision) | | [SetPlayerObjectMoveSpeed](../scripting/functions/SetPlayerObjectMoveSpeed) | -| [HideObjectForPlayer](../scripting/functions/HideObjectForPlayer) | -| [ShowObjectForPlayer](../scripting/functions/ShowObjectForPlayer) | ## Pickup @@ -111,7 +107,6 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | [IsPlayerPickupStreamedIn](../scripting/functions/IsPlayerPickupStreamedIn) | | [IsValidPickup](../scripting/functions/IsValidPickup) | | [IsValidPlayerPickup](../scripting/functions/IsValidPlayerPickup) | -| [SetPickupForPlayer](../scripting/functions/SetPickupForPlayer) | | [SetPickupModel](../scripting/functions/SetPickupModel) | | [SetPickupPos](../scripting/functions/SetPickupPos) | | [SetPickupType](../scripting/functions/SetPickupType) | @@ -133,7 +128,6 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | İsim | |---------------------------------------------------------------------------------------------------------| | [ChangeVehicleColours](../scripting/functions/ChangeVehicleColours) | -| [GetPlayerLastSyncedVehicleID](../scripting/functions/GetPlayerLastSyncedVehicleID) | | [GetRandomVehicleColourPair](../scripting/functions/GetRandomVehicleColourPair) | | [GetVehicleCab](../scripting/functions/GetVehicleCab) | | [GetVehicleTower](../scripting/functions/GetVehicleTower) | @@ -147,26 +141,22 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | [GetVehicleModelCount](../scripting/functions/GetVehicleModelCount) | | [GetVehicleModelsUsed](../scripting/functions/GetVehicleModelsUsed) | | [GetVehicleNumberPlate](../scripting/functions/GetVehicleNumberPlate) | -| [GetVehicleOccupiedTick](../scripting/functions/GetVehicleOccupiedTick) | | [GetVehiclePaintjob](../scripting/functions/GetVehiclePaintjob) | | [GetVehicleRespawnDelay](../scripting/functions/GetVehicleRespawnDelay) | | [GetVehicleRespawnTick](../scripting/functions/GetVehicleRespawnTick) | | [GetVehicleSirenState](../scripting/functions/GetVehicleSirenState) | | [GetVehicleSpawnInfo](../scripting/functions/GetVehicleSpawnInfo) | | [GetVehicleTrainSpeed](../scripting/functions/GetVehicleTrainSpeed) | -| [SetVehicleBeenOccupied](../scripting/functions/SetVehicleBeenOccupied) | | [HasVehicleBeenOccupied](../scripting/functions/HasVehicleBeenOccupied) | | [IsVehicleOccupied](../scripting/functions/IsVehicleOccupied) | | [HideVehicle](../scripting/functions/HideVehicle) | | [ShowVehicle](../scripting/functions/ShowVehicle) | | [IsVehicleHidden](../scripting/functions/IsVehicleHidden) | -| [SetVehicleDead](../scripting/functions/SetVehicleDead) | -| [IsVehicleDead](../scripting/functions/IsVehicleDead) | + + | [IsVehicleSirenEnabled](../scripting/functions/IsVehicleSirenEnabled) | -| [SetVehicleOccupiedTick](../scripting/functions/SetVehicleOccupiedTick) | | [SetVehicleParamsSirenState](../scripting/functions/SetVehicleParamsSirenState) | | [SetVehicleRespawnDelay](../scripting/functions/SetVehicleRespawnDelay) | -| [SetVehicleRespawnTick](../scripting/functions/SetVehicleRespawnTick) | | [SetVehicleSpawnInfo](../scripting/functions/SetVehicleSpawnInfo) | | [ToggleVehicleSirenEnabled](../scripting/functions/ToggleVehicleSirenEnabled) | | [VehicleColourIndexToColour](../scripting/functions/VehicleColourIndexToColour) | @@ -395,8 +385,6 @@ Bu sayfa open.mp'ye eklenen tüm fonksiyonları ve callbackleri içerir | [RemoveServerRule](../scripting/functions/RemoveServerRule) | | [IsValidServerRule](../scripting/functions/IsValidServerRule) | | [SetServerRule](../scripting/functions/SetServerRule) | -| [SetServerRuleFlags](../scripting/functions/SetServerRuleFlags) | -| [GetServerRuleFlags](../scripting/functions/GetServerRuleFlags) | ## Zamanlayıcı