Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide NP-INVENTORY BACKGROUND BLURU FIX

ARaros

Her zaman bir adım önde!
Gold Elite
Joined
Jun 29, 2021
Messages
181
Reaction score
70,728
Points
336
Location
USA/Los Angeles
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(" ", JSON.stringify({}));
}


Search for (item.response == 'closeGui') to have blur disappear at the close of each inventory and add the code below

JavaScript:
$.post(" ", 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(" ", JSON.stringify({}));
} else {
$.post(" ", 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...
 
Top