From 8fdf7d49df7392c43199a0f6758d3c8d6e4af1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agustin=20Iba=C3=B1ez?= <48695094+AgustinIbanez00@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:07:51 -0300 Subject: [PATCH] Fix NPC Vector3 argument marshalling in native proxies --- src/sampsharp-component/proxies/api.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sampsharp-component/proxies/api.cpp b/src/sampsharp-component/proxies/api.cpp index 1c8e3de9..efb0c699 100644 --- a/src/sampsharp-component/proxies/api.cpp +++ b/src/sampsharp-component/proxies/api.cpp @@ -252,7 +252,7 @@ PROXY_EVENT_HANDLER_END(MenuEventHandler, onPlayerSelectedMenuRow, onPlayerExite // include/Server/Components/NPCs PROXY(INPC, IPlayer*, getPlayer); PROXY(INPC, Vector3, getPosition); -PROXY(INPC, void, setPosition, const Vector3&, bool); +PROXY(INPC, void, setPosition, Vector3, bool); PROXY(INPC, GTAQuat, getRotation); PROXY(INPC, void, setRotation, const GTAQuat&, bool); PROXY(INPC, int, getVirtualWorld); @@ -301,10 +301,10 @@ PROXY(INPC, PlayerWeaponState, getWeaponState); PROXY(INPC, void, setWeaponState, PlayerWeaponState); PROXY(INPC, void, setAmmoInClip, int); PROXY(INPC, int, getAmmoInClip); -PROXY(INPC, void, shoot, int, PlayerBulletHitType, uint8_t, const Vector3&, const Vector3&, bool, EntityCheckType); +PROXY(INPC, void, shoot, int, PlayerBulletHitType, uint8_t, Vector3, Vector3, bool, EntityCheckType); PROXY(INPC, bool, isShooting); -PROXY(INPC, void, aimAt, const Vector3&, bool, int, bool, const Vector3&, EntityCheckType); -PROXY(INPC, void, aimAtPlayer, IPlayer&, bool, int, bool, const Vector3&, const Vector3&, EntityCheckType); +PROXY(INPC, void, aimAt, Vector3, bool, int, bool, Vector3, EntityCheckType); +PROXY(INPC, void, aimAtPlayer, IPlayer&, bool, int, bool, Vector3, Vector3, EntityCheckType); PROXY(INPC, void, stopAim); PROXY(INPC, bool, isAiming); PROXY(INPC, bool, isAimingAtPlayer, IPlayer&); @@ -378,12 +378,12 @@ PROXY(INPCComponent, int, createPath); PROXY(INPCComponent, bool, destroyPath, int); PROXY(INPCComponent, void, destroyAllPaths); PROXY(INPCComponent, size_t, getPathCount); -PROXY(INPCComponent, bool, addPointToPath, int, const Vector3&, float); +PROXY(INPCComponent, bool, addPointToPath, int, Vector3, float); PROXY(INPCComponent, bool, removePointFromPath, int, size_t); PROXY(INPCComponent, bool, clearPath, int); PROXY(INPCComponent, size_t, getPathPointCount, int); PROXY(INPCComponent, bool, getPathPoint, int, size_t, Vector3&, float&); -PROXY(INPCComponent, bool, hasPathPointInRange, int, const Vector3&, float); +PROXY(INPCComponent, bool, hasPathPointInRange, int, Vector3, float); PROXY(INPCComponent, bool, isValidPath, int); PROXY(INPCComponent, int, loadRecord, StringView); PROXY(INPCComponent, bool, unloadRecord, int);