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.
gangs_update.client.lua
Copy
-- Note: This is ONLY an example, you have to change it accordingly!
-- Client Side
Citizen.CreateThread(function()
while true do
local gang = json.decode(LocalPlayer.state.gang) or {}
if not gang.rank then
TriggerEvent('aliyahs-main:moneyhud:gang:update', 'No - Gang')
TriggerEvent('aliyahs-main:moneyhud:gang:toggle', false) -- Mark this line off if you want to make it where you can see your gang at all times.
else
TriggerEvent('aliyahs-main:moneyhud:gang:update', (gang.gang.. ' - '..gang.rank))
TriggerEvent('aliyahs-main:moneyhud:gang:toggle', true)
end
Wait(5000)
end
end)
