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
When an on-foot player tries to jack a vehicle from an occupant who is doing Driveby, but fails to actually kick the occupant out of the vehicle, the following happens:
for the on-foot player, the occupant puts his head back in the vehicle (stops doing Driveby)
for the on-foot player, isPedDoingGangDriveby(occupant) returns false
for the vehicle occupant, their head is still out of the vehicle (still doing Driveby)
server side isPedDoingGangDriveby(occupant) returns true
Steps to reproduce
Enter vehicle as Player A
Enter Driveby mode
Attempt to jack Player A's vehicle as Player B but cancel it (move away)
As Player B, observe how Player A's head goes back inside
As player A, notice how your head is still outside and you are still doing Driveby
I believe this happens because the action of being jacked doesn't verify whether the jacked player (pause) actually gets removed from the vehicle or if the action fails.
Temporary solutions
Make the vehicle occupant exit the vehicle and re-enter it.
Making the vehicle occupant toggle Driveby does not sync/fix the state for the on-foot player.
Doing setPedDoingGangDriveby(occupant, false) then setPedDoingGangDriveby(occupant, true) server side will sync/fix it
Doing the above client side does not sync/fix it
Relevant log output
No response
Security Policy
I have read and understood the Security Policy and this issue is not security related.
The text was updated successfully, but these errors were encountered:
Describe the bug
When an on-foot player tries to jack a vehicle from an occupant who is doing Driveby, but fails to actually kick the occupant out of the vehicle, the following happens:
isPedDoingGangDriveby(occupant)
returnsfalse
isPedDoingGangDriveby(occupant)
returnstrue
Steps to reproduce
Version
Clients: v1.5.9-release-21643
Additional context
Probably caused by this code: CNetAPI.cpp #1526
I believe this happens because the action of being jacked doesn't verify whether the jacked player (pause) actually gets removed from the vehicle or if the action fails.
Temporary solutions
Making the vehicle occupant toggle Driveby does not sync/fix the state for the on-foot player.
setPedDoingGangDriveby(occupant, false)
thensetPedDoingGangDriveby(occupant, true)
server side will sync/fix itDoing the above client side does not sync/fix it
Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: