Skip to content

add get vehicle position and rotation#71

Open
Revelts wants to merge 1 commit into
openmultiplayer:devfrom
Revelts:Revelt/npc-get-vehicle-pos-rot
Open

add get vehicle position and rotation#71
Revelts wants to merge 1 commit into
openmultiplayer:devfrom
Revelts:Revelt/npc-get-vehicle-pos-rot

Conversation

@Revelts

@Revelts Revelts commented Jun 28, 2026

Copy link
Copy Markdown

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.
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.

1 participant