Skip to content

Conversation

MohabCodeX
Copy link
Contributor

Thanks to @FileEX for pointing this issue out.

Statement: When warping an occupant into a vehicle during onVehicleStartExit, their state becomes bugged: the game still thinks they are inside the car, and they cannot enter any other vehicle until the vehicle respawns or the player dies

  • Player tries to exit vehicle
  • onVehicleStartExit event is triggered
  • Script calls warpPedIntoVehicle(player, source) - player is warped back into vehicle
  • BUG: Server still processes the exit and sets player as "exiting"
  • Result: Player appears to be in vehicle but game thinks they're exiting
  • Appears "stuck" in an inconsistent state
2025-09-13.15-14-20.1.mp4

After Fix:

  • Player tries to exit vehicle
  • onVehicleStartExit event is triggered
  • Script calls warpPedIntoVehicle(player, source) - player is warped back into vehicle
  • Fixed: Server detects that warp occurred during the event via m_bOccupantChanged flag
  • Result: Server aborts the exit process and sends VEHICLE_ATTEMPT_FAILED
2025-09-13.15-06-43.2.mp4

Player stays in a consistent state, with correct position updates and the ability to continue normal gameplay without getting stuck.

@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 16, 2025
@ArranTuna ArranTuna added the sync label Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants