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
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.
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: