Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 community.

Guide NP-INVENTORY BACKGROUND BLURU FIX

ARaros

Her zaman bir adım önde!
Gold Elite
Joined
Jun 29, 2021
Messages
184
Reaction score
152
Points
206
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...
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds