| Property | Value |
|---|---|
| Native Name | SET_PLAYER_CAN_DO_DRIVE_BY |
| Hash | 0x6E8834B52EC20C77 |
| Return Type | void |
| Parameters | player (Player), toggle (BOOL) |
Description: Sets whether the player is able to do drive-bys in vehicle (shooting & aiming in vehicles), this also includes middle finger taunts.
This is a toggle, it does not have to be ran every frame.
Parameters
player(Player) — The player to target.toggle(BOOL) — If set to false, disables the players ability to do drive bys.
Examples
SetPlayerCanDoDriveBy(PlayerId(), false)