Skip to content

OnPlayerUpdate doesn't works inside train WAGON #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tucho0 opened this issue May 13, 2025 · 0 comments
Open

OnPlayerUpdate doesn't works inside train WAGON #1086

tucho0 opened this issue May 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tucho0
Copy link

tucho0 commented May 13, 2025

Describe the bug
I have a gamemode that when you get inside some vehicles as copilot ( ambulance seat >= 2, trains and others ) teleports you inside a interior. the thing is the code was working nice in SA-MP and OPEN.mp, the ambulance interior and others vehicles, but inside train WAGONS wasn't working, debuing what was going on I noticed that I can't even use the OnPlayerUpdate CallBack when I get in on a train wagon

To Reproduce
Steps to reproduce the behavior:

  1. Create some train with wagons (538 model)
  2. Pres G on some of the wagons and then you won't see OnPlayerUpdate working, GetPlayerVehicleID returns 0

Expected behavior
OnPlayerUpdate callback working, GetPlayerVehicleID returning the vehicle id so I can teleport players inside interiors

Screenshots and/or logs
Code:
Image
Logs:
Outside train wagon
Image
Inside train wagon, you can use see Timestamp OnPlayerUpdate doesn't works
Image

Release version
open.mp 1.4.0.2783
Image

@tucho0 tucho0 added the bug Something isn't working label May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant