Skip to content

Commit

Permalink
Change name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas7yoshi committed Nov 15, 2023
1 parent 249179c commit 9eb7f9c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
21 changes: 0 additions & 21 deletions PLAYER/IsPlayerDrivingAgainstTraffic.md

This file was deleted.

23 changes: 23 additions & 0 deletions PLAYER/IsPlayerDrivingDangerously.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
ns: PLAYER
aliases: ["0xF10B44FD479D69F3"]
---
## _IS_PLAYER_DRIVING_DANGEROUSLY

```c
// 0xF10B44FD479D69F3 0x1E359CC8
BOOL _IS_PLAYER_DRIVING_DANGEROUSLY(Player player, int type);
```
Checks if a player is performing a certain type of traffic violation.
Type 1: Checks if the player is running through reds, takes some time to return true.
Type 2: Checks if the player is driving in the wrong direction.
Used solely in "Al Di Napoli" with type 2 for a voiceline.
## Parameters
* **player**: Player ID
* **type**: 1: Running red lights, 2: Driving against traffic
## Return value
Whether or not the player is actively (moving) driving against traffic

0 comments on commit 9eb7f9c

Please sign in to comment.