Hi , i want to disable this hud. - from left corner , is hud for minimap. , but i tried some commands like
if IsPauseMenuActive() then
– Hide the UI here
end
Someone can help me ? i can post also the code. Thanks
Hi , i want to disable this hud. - from left corner , is hud for minimap. , but i tried some commands like
if IsPauseMenuActive() then
– Hide the UI here
end
Someone can help me ? i can post also the code. Thanks
Er du dum makker?
Lua
if IsPauseMenuActive() then
SendNUIMessage({
action = 'disable'
})
end
JS
$(function() {
window.addEventListener('message', function(event) {
switch (event.data.action) {
case 'disable':
$(".YourMainClassName").fadeOut(100);
break;
default:
break;
}
});
});
@MuDzYn
Like this?
Citizen.CreateThread(function()
Citizen.Wait(1)
if IsPauseMenuActive() then
SendNUIMessage({
action = ‘disable’
})
local playerPed = GetPlayerPed(-1)
css = [[
.div_fundo{
position: absolute;
content: url(“https://i.imgur.com/FxyqhVx.png”);
width: 85.50%;
height: 78%;
top: 48.40%;
left: -30%;
}
]]
SetTimeout(6000, function()
vRP.setDiv({“fundo”,css})
end)
end
end)
Probably yes, but I’m not sure it should look like this because I have never worked with vRP.
Add code to your NUI .js file
@MuDzYn Can you show me how ? i create disable.js and i put your JS code and as I showed you I put the code, but it doesn’t work
You don’t have .js file in this script? Maybe send source code of this script
Send it to PM.
English?