Hello VAG Users, I will share with you the steps to fix the np-inventory background bluru problem.
First, open the html file of np-inventory and change the line that says enable background blur to the one below
HTML:
<input type="checkbox" id="blurControl"/> Enable background bluru
Then enter the script.js file and search for the code (item.response == 'openGui') and add the following codes in one line
JavaScript:
if( $('#blurControl').is(":checked") ){
$.post("
}
Search for (item.response == 'closeGui') to have blur disappear at the close of each inventory and add the code below
JavaScript:
$.post("
Search for $('.save-settings').click(() and add the following to the bottom line for the action to happen when you press the save button
JavaScript:
if( $('#blurControl').is(":checked") ){
$.post("
} else {
$.post("
}
Finally add the bottom ones at the bottom of functions.lua to make all this work
Code:
RegisterNUICallback('blurAc', function(data, cb)
TriggerScreenblurFadeIn(1000)
end)
RegisterNUICallback('blurClose', function(data, cb)
TriggerScreenblurFadeOut(1000)
end)
That's all, I hope you get the solution. Good Forums...
First, open the html file of np-inventory and change the line that says enable background blur to the one below
HTML:
<input type="checkbox" id="blurControl"/> Enable background bluru
Then enter the script.js file and search for the code (item.response == 'openGui') and add the following codes in one line
JavaScript:
if( $('#blurControl').is(":checked") ){
$.post("
Hidden link for visitors, to see
Log in or register now.
", JSON.stringify({}));}
Search for (item.response == 'closeGui') to have blur disappear at the close of each inventory and add the code below
JavaScript:
$.post("
Hidden link for visitors, to see
Log in or register now.
", JSON.stringify({}));Search for $('.save-settings').click(() and add the following to the bottom line for the action to happen when you press the save button
JavaScript:
if( $('#blurControl').is(":checked") ){
$.post("
Hidden link for visitors, to see
Log in or register now.
", JSON.stringify({}));} else {
$.post("
Hidden link for visitors, to see
Log in or register now.
", JSON.stringify({}));}
Finally add the bottom ones at the bottom of functions.lua to make all this work
Code:
RegisterNUICallback('blurAc', function(data, cb)
TriggerScreenblurFadeIn(1000)
end)
RegisterNUICallback('blurClose', function(data, cb)
TriggerScreenblurFadeOut(1000)
end)
That's all, I hope you get the solution. Good Forums...