Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenW,screenH = guiGetScreenSize()
- local resW, resH = 1920,1080
- local x, y = (screenW/resW), (screenH/resH)
- local components = { "area_name", "radio", "vehicle_name", "radar" }
- function setHud()
- addEventHandler("onClientRender", getRootElement(), Fonseca)
- setPlayerHudComponentVisible("armour", false)
- setPlayerHudComponentVisible("wanted", false)
- setPlayerHudComponentVisible("weapon", false)
- setPlayerHudComponentVisible("money", false)
- setPlayerHudComponentVisible("health", false)
- setPlayerHudComponentVisible("clock", false)
- setPlayerHudComponentVisible("breath", false)
- setPlayerHudComponentVisible("ammo", false)
- for _, component in ipairs( components ) do
- setPlayerHudComponentVisible( component, false )
- end
- end
- addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), setHud)
- function removeHud()
- setPlayerHudComponentVisible("armour", true)
- setPlayerHudComponentVisible("wanted", true)
- setPlayerHudComponentVisible("weapon", true)
- setPlayerHudComponentVisible("money", true)
- setPlayerHudComponentVisible("health", true)
- setPlayerHudComponentVisible("clock", true)
- setPlayerHudComponentVisible("breath", true)
- setPlayerHudComponentVisible("ammo", true)
- end
- addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), removeHud)
Advertisement
Add Comment
Please, Sign In to add comment