Skip to content

Commit

Permalink
Store the use of alcohol
Browse files Browse the repository at this point in the history
This modification can be used in smallresource
  • Loading branch information
bicatcho11 authored Dec 18, 2023
1 parent b132f29 commit a674d14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function QBCore.Player.CheckPlayerData(source, PlayerData)
PlayerData.metadata = PlayerData.metadata or {}
PlayerData.metadata['hunger'] = PlayerData.metadata['hunger'] or 100
PlayerData.metadata['thirst'] = PlayerData.metadata['thirst'] or 100
PlayerData.metadata['alcohol'] = PlayerData.metadata['alcohol'] or 0
PlayerData.metadata['stress'] = PlayerData.metadata['stress'] or 0
PlayerData.metadata['isdead'] = PlayerData.metadata['isdead'] or false
PlayerData.metadata['inlaststand'] = PlayerData.metadata['inlaststand'] or false
Expand Down

0 comments on commit a674d14

Please sign in to comment.