Meta
Helper functions for tracking a player's blood alcohol content.
Player:ResetBAC
Purpose
Resets the player's blood alcohol level to zero and triggers the BAC hooks.
Parameters
None
Realm
Server
Returns
nil
Example
Player:AddBAC
Purpose
Raises the player's BAC by the specified amount.
| Name | Type | Description |
| ------- | ------ | ------------------ |
| amount
| number | BAC points to add. |
Realm
Server
Returns
nil
Example
Player:IsDrunk
Purpose
Checks whether the player's BAC is above the configured threshold.
Parameters
None
Realm
Shared
Returns
boolean – true
if the player is drunk.
Player:GetBAC
Purpose
Retrieves the player's current BAC value.
Parameters
None
Realm
Shared
Returns
number
Example