Version
3.4.0
Description
As of the latest title update for GTA5 and SHV (2699), SHVDN is no longer returning null for Game.Player.Character.CurrentVehicle after a player leaves a vehicle. Once you enter a vehicle, Game.Player.Vehicle.CurrentVehicle is updated to the vehicle you are in. When you exit the vehicle fully, this value is nulled. If you revert GTA5 to v2628 (even leaving SHV 2699 alone), this behavior returns to normal. However, when using GTA5 v2699, this value does not return null after a player leaves any vehicle. Instead, it is updated each time the player enters a new vehicle, but is never nulled. This causes unexpected behavior in scripts which rely on knowing when a player has exited a vehicle in order to fire events.
Upon further testing, it appears there is something wrong with the underlying natives as of 2699. I do not know if this means a memory location has changed, or if Rockstar actually introduced a huge bug as of 2699.
If you return Function.Call(Hash.GET_VEHICLE_PED_IS_IN, Game.Player.Character.Handle, true), it will return the last vehicle you were in. If you change 'true' to 'false', it will still return the last vehicle you were in instead of null. However, Function.Call(Hash.IS_PED_IN_VEHICLE, Game.Player.Character.Handle, {vehiclehandle}) will return false as expected. So the game appears to be aware that you are not in a vehicle, but is not nulling the 'current vehicle'.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4