From deb96ab2fcd35bbe10129389036c9943ee90186f Mon Sep 17 00:00:00 2001 From: Nexius Date: Wed, 11 Mar 2026 11:45:39 +0300 Subject: [PATCH] Tweaks for vehicle natives namely for `GetVehicleRotation` and `GetVehicleMatrix` --- frontend/docs/scripting/functions/GetVehicleMatrix.md | 8 ++++++++ frontend/docs/scripting/functions/GetVehicleRotation.md | 2 ++ .../current/scripting/functions/GetVehicleMatrix.md | 8 ++++++++ .../current/scripting/functions/GetVehicleMatrix.md | 8 ++++++++ .../current/scripting/functions/GetVehicleRotation.md | 2 ++ 5 files changed, 28 insertions(+) diff --git a/frontend/docs/scripting/functions/GetVehicleMatrix.md b/frontend/docs/scripting/functions/GetVehicleMatrix.md index 3e3597e5b42..30f7854ac22 100644 --- a/frontend/docs/scripting/functions/GetVehicleMatrix.md +++ b/frontend/docs/scripting/functions/GetVehicleMatrix.md @@ -26,6 +26,14 @@ Gets the actual rotation matrix of the vehicle. | &Float:atY | A float variable in which to store the atY coordinate, passed by reference. | | &Float:atZ | A float variable in which to store the atZ coordinate, passed by reference. | +## Returns + +**true** - The function was executed successfully. + +**false** - The function failed to execute. This means the vehicle specified does not exist. + +The vehicle's rotation is stored in the specified variables. + ## Examples ```c diff --git a/frontend/docs/scripting/functions/GetVehicleRotation.md b/frontend/docs/scripting/functions/GetVehicleRotation.md index 9e1155be11d..748d6182230 100644 --- a/frontend/docs/scripting/functions/GetVehicleRotation.md +++ b/frontend/docs/scripting/functions/GetVehicleRotation.md @@ -5,6 +5,8 @@ description: Returns a vehicle's rotation as euler. tags: ["vehicle"] --- + + ## Description Returns a vehicle's rotation as euler. diff --git a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md index 52e05a5c478..09e957722b9 100644 --- a/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md +++ b/frontend/i18n/fa/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md @@ -26,6 +26,14 @@ tags: ["vehicle"] | &Float:atY | متغیر float برای ذخیره مختصات atY که به صورت reference پاس داده می‌شه. | | &Float:atZ | متغیر float برای ذخیره مختصات atZ که به صورت reference پاس داده می‌شه. | +## مقادیر برگشتی + +**true** - تابع با موفقیت اجرا شد. + +**false** - تابع موفق به اجرا نشد. یعنی وسیله نقلیه مشخص شده وجود نداره. + +چرخش وسیله نقلیه در متغیرهای مشخص شده ذخیره می‌شه. + ## مثال‌ها ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md index 3bc57e91240..92e26cbe030 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleMatrix.md @@ -26,6 +26,14 @@ tags: ["车辆"] | &Float:atY | 用于存储 atY 坐标的浮点变量(通过引用传递) | | &Float:atZ | 用于存储 atZ 坐标的浮点变量(通过引用传递) | +## 返回值 + +**true** - 函数执行成功。 + +**false** - 函数执行失败。这意味着指定的车辆不存在。 + +车辆的旋转存储在指定的变量中。 + ## 示例代码 ```c diff --git a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md index d728acc1ed4..55e2d6036e0 100644 --- a/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md +++ b/frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/functions/GetVehicleRotation.md @@ -5,6 +5,8 @@ description: 返回车辆的欧拉角旋转。 tags: ["车辆"] --- + + ## 描述 返回车辆的欧拉角旋转。