Skip to content
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

Add getPedOccupiedVehicleStart serverside #2611

Open
1 task done
MrDadosz opened this issue May 3, 2022 · 1 comment
Open
1 task done

Add getPedOccupiedVehicleStart serverside #2611

MrDadosz opened this issue May 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@MrDadosz
Copy link

MrDadosz commented May 3, 2022

Is your feature request related to a problem? Please describe.

You can't now check if you're in vehicle in serveride. getPedOccupiedVehicle should return data only when player is in a vehicle, it should return false when player click F/Enter and is trying to get in a vehicle. Now you have to trigger clientside to make sure that player is not walking to a closed vehicle and wait for response.
getPedOccupiedVehicle should have new argument "isEntering" set default to true to keep compatibility with older scripts.

Describe the solution you'd like

getPedOccupiedVehicle and getPedOccupiedVehicleStart

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@MrDadosz MrDadosz added the enhancement New feature or request label May 3, 2022
@PlatinMTA
Copy link
Contributor

You can have this logic serverside tho. onVehicleEnter will only trigger when the player is 100% inside the vehicle. Using not synced element datas or a table should be enough.

I would preffer an extra argument to getPedOccupiedVehicle like boolean isInside or something similar, so we dont break backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants