Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
tweak(server): Job money Wait Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Sep 11, 2021
1 parent 8dcbb23 commit c1bc97a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ local default_routing = {}
local current_routing = {}

function Jobmoney(job)
local value = 0
local value = -1
local job = job
local count = 0
CreateThread(function()
value = exports.renzu_jobs:JobMoney(job).money
end)
Wait(1500)
return tonumber(value)
while value == -1 and count < 150 do count = count + 1 Wait(0) end
return value
end

ESX.RegisterServerCallback('renzu_customs:pay', function (source, cb, t,shop)
Expand Down

0 comments on commit c1bc97a

Please sign in to comment.