Skip to content
Closed

Wm #450

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function AlcoholLoop()
while true do
Wait(10)
if alcoholCount > 0 then
Wait(1000 * 60 * 15)
Wait(1000 * 60 * 15) -- Vitto 15 minutes refresh time for alcohol
alcoholCount -= 1
else
looped = false
Expand Down
6 changes: 4 additions & 2 deletions client/handsup.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local handsUp = false
local QBCore = exports['qb-core']:GetCoreObject()

RegisterCommand(Config.HandsUp.command, function()
local ped = PlayerPedId()
Expand All @@ -9,9 +10,10 @@ RegisterCommand(Config.HandsUp.command, function()
end
end
handsUp = not handsUp
if exports['qb-policejob']:IsHandcuffed() then return end
local PlayerData = QBCore.Functions.GetPlayerData()
if exports['qb-policejob']:IsHandcuffed() or PlayerData.metadata["isdead"] or PlayerData.metadata["inlaststand"] then return end
if handsUp then
TaskPlayAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 8.0, 8.0, -1, 50, 0, false, false, false)
TaskPlayAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 2.0, 2.5, -1, 50, 0, false, false, false)
exports['qb-smallresources']:addDisableControls(Config.HandsUp.controls)
else
ClearPedTasks(ped)
Expand Down