Skip to content

add get vehicle position and rotation - #71

Merged
AmyrAhmady merged 1 commit into
openmultiplayer:devfrom
Revelts:Revelt/npc-get-vehicle-pos-rot
Oct 14, 2026
Merged

AmyrAhmady merged 1 commit into
openmultiplayer:devfrom
Revelts:Revelt/npc-get-vehicle-pos-rot

Conversation

@Revelts

@Revelts Revelts commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Adds INPC::getVehiclePosition() and INPC::getVehicleRotation() as the counterpart getters for the setVehiclePosition/setVehicleRotation setters introduced in 71ea63a.

Both getters return zero/identity when the NPC is not currently in a vehicle, matching the silent no-op semantics of the existing setters.

Paired with implementation + PAWN natives PR in openmultiplayer/open.mp (linked below once opened).

Closes openmultiplayer/open.mp#1197.

Counterpart getters for setVehiclePosition/setVehicleRotation introduced
in 71ea63a. Closes openmultiplayer/open.mp#1197.
@AmyrAhmady
AmyrAhmady merged commit 65e0091 into openmultiplayer:dev Oct 14, 2026
AmyrAhmady pushed a commit to openmultiplayer/open.mp that referenced this pull request Oct 14, 2026
Implements the INPC vehicle position/rotation getters added in SDK
PR openmultiplayer/open.mp-sdk#71 and exposes them to PAWN as
NPC_GetVehiclePos and NPC_GetVehicleRot, mirroring the existing
NPC_SetVehiclePos / NPC_SetVehicleRot setters.

Both getters return zero/identity when the NPC is not currently
in a vehicle, matching the silent no-op semantics of the setters.

Closes #1197.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants