-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclient.lua
31 lines (26 loc) · 947 Bytes
/
client.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local QBCore = exports['qb-core']:GetCoreObject()
RegisterCommand('showjoblimit', function()
QBCore.Functions.TriggerCallback('ik-joblimit:server:getJobMoney', function(result)
if result then
QBCore.Functions.Notify(Lang:t('notify.totals', {result = result, limit = Config.Limit}), 'primary', 7500)
end
end)
end)
local function ControlEarning(money)
QBCore.Functions.TriggerCallback('ik-joblimit:server:canEarnJobMoney', function(result)
if result then
return true
else
return false
end
end,money)
end
exports('ControlEarning', ControlEarning)
local function AddJobMoney(money)
QBCore.Functions.TriggerCallback('ik-joblimit:server:addJobMoney', function(result)
if result then
QBCore.Functions.Notify('$ '..money..' '..Lang:t('notify.added'), 'success', 7500)
end
end,money)
end
exports('AddJobMoney', AddJobMoney)