You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NPC_PutInVehicle does not visually attach NPC to boat seat #1225
NPC_GetVehicle returns returns the correct boat ID
NPC_GetVehicleSeat returns driver
However, the NPC model remains visually on foot and does not attach to the boat seat.
For testing, I manually positioned the NPC on top of the boat using NPC_SetPos, then called NPC_PutInVehicle through a custom command while standing near the boat. After calling it, the NPC briefly disappears and reappears, but still remains visually on foot instead of attaching to the boat seat.
I also tested calling NPC_PutInVehicle automatically after spawn, and the result is the same.
Root cause: Vehicle::putPlayer sends PutPlayerInVehicle only to the entering player, which is a no-op for an NPC (no real client). Other streamed clients only see DriverSync packets afterwards, and the SA-MP client refuses to attach a remote player to boats from DriverSync alone while the local view shows them on foot. The natural goToVehicle path does not hit this because it broadcasts EnterVehicle first.
Fix mirrors the natural entry path: broadcast EnterVehicle to streamed players inside NPC::putInVehicle after Vehicle::putPlayer.
Activity
Revelts commentedon Jun 28, 2026
Opened #1236 with a fix.
Root cause:
Vehicle::putPlayersendsPutPlayerInVehicleonly to the entering player, which is a no-op for an NPC (no real client). Other streamed clients only seeDriverSyncpackets afterwards, and the SA-MP client refuses to attach a remote player to boats fromDriverSyncalone while the local view shows them on foot. The naturalgoToVehiclepath does not hit this because it broadcastsEnterVehiclefirst.Fix mirrors the natural entry path: broadcast
EnterVehicleto streamed players insideNPC::putInVehicleafterVehicle::putPlayer.fix npc put in vehicle not visually attaching for boats