mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Fixed broken code
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ AddEventHandler('esx_holdup:starttimer', function()
|
||||
Citizen.Wait(0)
|
||||
if holdingup then
|
||||
drawTxt(0.66, 1.44, 1.0,1.0,0.4, _U('robbery_timer', timer), 255, 255, 255, 255)
|
||||
elseif
|
||||
else
|
||||
Citizen.Wait(1000)
|
||||
end
|
||||
end
|
||||
|
||||
+2
-3
@@ -72,9 +72,8 @@ AddEventHandler('esx_holdup:rob', function(robb)
|
||||
rob = false
|
||||
if xPlayer then
|
||||
local award = store.reward
|
||||
|
||||
TriggerClientEvent('esx_holdup:robberycomplete', savedSource, reward)
|
||||
xPlayer.addAccountMoney('black_money', reward)
|
||||
TriggerClientEvent('esx_holdup:robberycomplete', savedSource, award)
|
||||
xPlayer.addAccountMoney('black_money', award)
|
||||
|
||||
local xPlayers = ESX.GetPlayers()
|
||||
for i=1, #xPlayers, 1 do
|
||||
|
||||
Reference in New Issue
Block a user