{"id":92230,"date":"2023-10-31T12:53:48","date_gmt":"2023-10-31T11:53:48","guid":{"rendered":"https:\/\/fivem-mods.net\/?post_type=product&#038;p=92230"},"modified":"2025-12-24T07:29:45","modified_gmt":"2025-12-24T06:29:45","slug":"tente-hud","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pt\/trygon-hud\/","title":{"rendered":"Interface de usu\u00e1rio Trygon"},"content":{"rendered":"\r\n<h2 class=\"wp-block-heading\">Config file:<\/h2>\r\n\r\n\r\n\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"lua\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Customize = {\r\n    \r\n    Framework = \"QBCore\", -- QBCore | ESX | OldQBCore (Write the framework you used as in the example)\r\n    Mysql = \"oxmysql\", -- oxmysql | ghmattimysql | mysql-async (Write the sql script you use as in the example)\r\n    DefaultColor = 2, -- 1: blue | 2: red | 3: purple | 4: green\r\n    DefaultType = 'kmh', -- kmh | mph\r\n    ServerName = 'UZ ROLEPLAY',\r\n    VehHudText = 'uz-rp',\r\n    ServerMaxOnline = 120,\r\n    SeatbeltControl = 'K',\r\n\r\n    QuestionYes = 246, -- Y: 246\r\n    QuestionNo = 249, -- N: 249\r\n\r\n--\r\n    NitroItem = \"noos\", -- item to install nitro to a vehicle\r\n    NitroControl = \"G\",\r\n    NitroForce = 40.0, -- Nitro force when player using nitro\r\n    RemoveNitroOnpress = 2, -- Determines of how much you want to remove nitro when player press nitro key\r\n\r\n    SignalControl = false,\r\n    RightSignalControl = 174, -- &gt; : 174\r\n    LeftSignalControl = 175, -- &lt; : 175\r\n--\r\n\r\n\r\n    MoneyDisplay = true, -- true | false\r\n    StatusDisplay = true, -- true | false\r\n\r\n\r\n    JobLabel = false, -- true | false (true:Officer  -  false: Police)\r\n    JobDisplay = true, -- true | false\r\n    BlackMoneyDisplay = false, -- true | false\r\n    BossMoneyDisplay = false, -- true | false\r\n\r\n    SocietyMoney = function()\r\n        return 0 -- You should edit this to your own server\r\n    end,\r\n\r\n    DefaultMapType = 'rectangle', -- rectangle | radial\r\n\r\n    Lang = {\r\n        ['Online'] = 'ONLINE',\r\n        ['ID'] = 'ID',\r\n    },\r\n\r\n    GetVehFuel = function(Veh)\r\n        return exports[\"uz_fuel\"]:GetFuel(Veh) -- exports[\"LegacyFuel\"]:GetFuel(Veh) - GetVehicleFuelLevel(Veh) - exports[\"uz_fuel\"]:GetFuel(Veh)\r\n    end,\r\n\r\n    StressChance = 0.1, -- Default: 10% -- Percentage Stress Chance When Shooting (0-1)\r\n    MinimumStress = 50, -- Minimum Stress Level For Screen Shaking\r\n    MinimumSpeedUnbuckled = 50, -- Going Over This Speed Will Cause Stress\r\n\r\n    WhitelistedWeaponStress = {\r\n        `weapon_petrolcan`,\r\n        `weapon_hazardcan`,\r\n        `weapon_fireextinguisher`\r\n    },\r\n\r\n    Intensity = {\r\n        [1] = {\r\n            min = 50,\r\n            max = 60,\r\n            intensity = 1500,\r\n        },\r\n        [2] = {\r\n            min = 60,\r\n            max = 70,\r\n            intensity = 2000,\r\n        },\r\n        [3] = {\r\n            min = 70,\r\n            max = 80,\r\n            intensity = 2500,\r\n        },\r\n        [4] = {\r\n            min = 80,\r\n            max = 90,\r\n            intensity = 2700,\r\n        },\r\n        [5] = {\r\n            min = 90,\r\n            max = 100,\r\n            intensity = 3000,\r\n        },\r\n    },\r\n\r\n    EffectInterval = {\r\n        [1] = {\r\n            min = 50,\r\n            max = 60,\r\n            timeout = math.random(50000, 60000)\r\n        },\r\n        [2] = {\r\n            min = 60,\r\n            max = 70,\r\n            timeout = math.random(40000, 50000)\r\n        },\r\n        [3] = {\r\n            min = 70,\r\n            max = 80,\r\n            timeout = math.random(30000, 40000)\r\n        },\r\n        [4] = {\r\n            min = 80,\r\n            max = 90,\r\n            timeout = math.random(20000, 30000)\r\n        },\r\n        [5] = {\r\n            min = 90,\r\n            max = 100,\r\n            timeout = math.random(15000, 20000)\r\n        }\r\n    }\r\n}\r\n\r\n\r\n\r\nfunction GetFramework()\r\n    local Get = nil\r\n    if Customize.Framework == \"ESX\" then\r\n        while Get == nil do\r\n            TriggerEvent('esx:getSharedObject', function(Set) Get = Set end)\r\n            Citizen.Wait(0)\r\n        end\r\n    end\r\n    if Customize.Framework == \"QBCore\" then\r\n        Get = exports[\"qb-core\"]:GetCoreObject()\r\n    end\r\n    if Customize.Framework == \"OldQBCore\" then\r\n        while Get == nil do\r\n            TriggerEvent('QBCore:GetObject', function(Set) Get = Set end)\r\n            Citizen.Wait(200)\r\n        end\r\n    end\r\n    return Get\r\nend\r\n\r\nfunction ExecuteSql(query)\r\n    local IsBusy = true\r\n    local result = nil\r\n    if Customize.Mysql == \"oxmysql\" then\r\n        if MySQL == nil then\r\n            exports.oxmysql:execute(query, function(data)\r\n                result = data\r\n                IsBusy = false\r\n            end)\r\n        else\r\n            MySQL.query(query, {}, function(data)\r\n                result = data\r\n                IsBusy = false\r\n            end)\r\n        end\r\n    elseif Customize.Mysql == \"ghmattimysql\" then\r\n        exports.ghmattimysql:execute(query, {}, function(data)\r\n            result = data\r\n            IsBusy = false\r\n        end)\r\n    elseif Customize.Mysql == \"mysql-async\" then   \r\n        MySQL.Async.fetchAll(query, {}, function(data)\r\n            result = data\r\n            IsBusy = false\r\n        end)\r\n    end\r\n    while IsBusy do\r\n        Citizen.Wait(0)\r\n    end\r\n    return result\r\nend\r\n\r\n\r\n--[[\r\n    if exports['uz_TrygonHud']:Question('UZStore', 'Do you want to open settings ?') then\r\n        SendReactMessage('setOpenSettings', true)\r\n        SetNuiFocus(true, true)\r\n    end\r\n]]\r\n\r\n--[[\r\n    exports['uz_TrygonHud']:SetHudVisibility(false)\r\n    exports['uz_TrygonHud']:SetHudVisibility(true)\r\n]]<\/pre>\r\n","protected":false},"excerpt":{"rendered":"<p>Confira as imagens para ver o visual. :) \u00c9 bem moderno e bonito.<\/p>","protected":false},"featured_media":92231,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[1893,96,1820,512,2907,511],"product_tag":[],"class_list":["post-92230","product","type-product","status-publish","has-post-thumbnail","product_cat-fivem-hud","product_cat-esx-scripts","product_cat-police-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product\/92230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/comments?post=92230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media\/92231"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media?parent=92230"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_brand?post=92230"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_cat?post=92230"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_tag?post=92230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}