Skip to content

Commit

Permalink
Correct the tip for OnPlayerEnterVehicle
Browse files Browse the repository at this point in the history
This callback doesn't get called if a player can't get inside a vehicle as a driver due to it being locked.
Tested on both, open.mp and SA:MP.
Noted by @tubbsfrommiamivice
  • Loading branch information
mysy00 authored Oct 20, 2024
1 parent ee429fe commit d98b3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scripting/callbacks/OnPlayerEnterVehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
:::tip
- This callback is called when a player BEGINS to enter a vehicle, not when they HAVE entered it. See [OnPlayerStateChange](OnPlayerStateChange).
- This callback is still called if the player is denied entry to the vehicle (e.g. it is locked or full).
- This callback is still called if the player is denied entry to a vehicle (e.g. it is locked or full) but only as a passenger.
:::
Expand Down

0 comments on commit d98b3dc

Please sign in to comment.