From 324eb8083f8e32d973353d41288679e52544e22f Mon Sep 17 00:00:00 2001 From: Revelts Date: Sun, 28 Jun 2026 19:25:45 +0700 Subject: [PATCH] add get vehicle position and rotation Counterpart getters for setVehiclePosition/setVehicleRotation introduced in 71ea63a. Closes openmultiplayer/open.mp#1197. --- include/Server/Components/NPCs/npcs.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/Server/Components/NPCs/npcs.hpp b/include/Server/Components/NPCs/npcs.hpp index 734744c..f430a27 100644 --- a/include/Server/Components/NPCs/npcs.hpp +++ b/include/Server/Components/NPCs/npcs.hpp @@ -396,6 +396,12 @@ struct INPC : public IExtensible, public IIDProvider /// Set NPC vehicle rotation with ability to decide whether it needs immediate update or not virtual void setVehicleRotation(const GTAQuat& rotation, bool immediateUpdate) = 0; + + /// Get NPC vehicle position (zero vector when NPC is not in a vehicle) + virtual Vector3 getVehiclePosition() const = 0; + + /// Get NPC vehicle rotation (identity quaternion when NPC is not in a vehicle) + virtual GTAQuat getVehicleRotation() const = 0; }; struct NPCEventHandler