Posts: 161
Threads: 34
Joined: Jul 2012
Reputation:
0
This callback is don't called if the player state change on a new vehicle, very important for anticheat/optimization for don't use OnPlayerUpdate please.
Posts: 580
Threads: 26
Joined: Jan 2006
Reputation:
0
OnPlayerStateChange is only called if state changes, if a cheater changes from one vehicle to another the state is still player_state_driver.
The function is described perfectly and works just fine.
Just use the onplayerupdate and call your own onplayervehicleidchange because that's what you need & want.
Posts: 654
Threads: 20
Joined: Jul 2009
Reputation:
0
From my understanding, what you're implying is that OnPlayerStateChange is not called when a player is warped from a driving seat of one vehicle, immediately to the driving seat of another. If so, in any event this behaviour is correct. The player's state is not changing as they are still driving a vehicle.
Many servers' scripts heavily rely on player states. If an issue like this was indeed considered legitimate, I'm sure there would be hundreds of complaints all over these forums. Please consider carefully before posting in future.
Posts: 707
Threads: 2
Joined: May 2005
Reputation:
0
This is not a bug. The callback works correctly. The player state itself does not change going from vehicle to vehicle. However, something like getting out of the vehicle and getting back in a vehicle, that is different, and the callback will actually detect that.
Posts: 2,350
Threads: 96
Joined: Jun 2007
Reputation:
0
Listen to the guys above me. People should really stop reporting things that aren't bugs.