If you do not have programming experience, we recommend that you read each step completely without skipping any lines, since all documentation is important and should not be ignored under any circumstances. If you have a trusted developer, you can install this quickly, easily and safely if you complete this documentation step by step.
company_update.client.lua
Copy
-- Note: This is ONLY an example, you have to change it accordingly!
-- Client Side
Citizen.CreateThread(function()
local function getCompanyDataFunc()
return {
money = 0
}
end
while true do
local data = getCompanyDataFunc()
if not data then
TriggerEvent('aliyahs-main:moneyhud:company:update', 0)
TriggerEvent('aliyahs-main:moneyhud:company:toggle', false) -- Mark this line off if you want to make it where you can see your company money at all times.
else
TriggerEvent('aliyahs-main:moneyhud:company:update', data.money)
TriggerEvent('aliyahs-main:moneyhud:company:toggle', true)
end
Wait(5000)
end
end)
