From d051b6dc4f06d6c6199974130df12a351de3e9cd Mon Sep 17 00:00:00 2001 From: adib-yg Date: Sun, 24 Mar 2024 04:00:39 +0330 Subject: [PATCH] docs: update GetVehicleCab.md --- docs/scripting/functions/GetVehicleCab.md | 24 ++++++----------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/docs/scripting/functions/GetVehicleCab.md b/docs/scripting/functions/GetVehicleCab.md index 3941e0067..7d0e45415 100644 --- a/docs/scripting/functions/GetVehicleCab.md +++ b/docs/scripting/functions/GetVehicleCab.md @@ -1,6 +1,6 @@ --- title: GetVehicleCab -description: Get the ID of the trailer attached to a vehicle. +description: Get the ID of the cab attached to a vehicle. tags: ["vehicle"] --- @@ -8,34 +8,22 @@ tags: ["vehicle"] ## Description -Get the ID of the trailer attached to a vehicle. +Get the ID of the cab attached to a vehicle. | Name | Description | | --------- | -------------------------------------------- | -| vehicleid | The ID of the vehicle to get the trailer of. | +| vehicleid | The ID of the vehicle to get the cab of. | ## Returns -The vehicle ID of the trailer or 0 if no trailer is attached. +The vehicle ID of the cab or **0** if no cab is attached. ## Examples ```c -new - trailerId = GetVehicleCab(vehicleid); -DetachTrailerFromVehicle(trailerId); +new cabId = GetVehicleCab(vehicleid); ``` -## Notes - -:::warning - -This function does not work for trains. - -::: - ## Related Functions -- [AttachTrailerToVehicle](AttachTrailerToVehicle): Attach a trailer to a vehicle. -- [DetachTrailerFromVehicle](DetachTrailerFromVehicle): Detach a trailer from a vehicle. -- [IsTrailerAttachedToVehicle](IsTrailerAttachedToVehicle): Check if a trailer is attached to a vehicle. +- [GetVehicleTrailer](GetVehicleTrailer): Get the ID of the trailer attached to a vehicle.