Server Sidefunction hideBlip() exports.CITteams:setPlayerBlipAlpha(client, 0)endaddEvent("HungerGames.blips", true)addEventHandler("HungerGames.blips", root, hideBlip)function showBlip() exports.CITteams:setPlayerBlipAlpha(client, 255)endaddEvent("regularBlips", true)addEventHandler("regularBlips", root, showBlip)
Client Sidefunction hideBlips() dim = getElementDimension(localPlayer) if (dim == 860) then triggerServerEvent("HungerGames.blips", root) elseif (dim ~= 860) then triggerServerEvent("regularBlips", root) endendaddEventHandler("onClientRender", root, hideBlips)
Innovation fuels success
triggerServerEvent("HungerGames.blips", root)Don't send the root element at triggerServerEvent, it's the source/client element you're sending which can't be root. Should use localPlayer for 2nd argument.
False. Using root is the most efficient element to send as it's userdata value is the lowest. Local player doesn't need to be sent because the predefined value of client is used server side when the event is handled.There is no export to make peoples blips invisible. Instead tell me a way of distinguishing whether it should be visible or not client side for example if they should be disabled in a certain dimension and I'll update CITteams.
If you can disable them in dimension 860 it should be more than enough