I change the script name like cool_inventory to maan_inventory and i cant close the inventory

I change the script name like cool_inventory to maan_inventory and i cant close the inventory.
And the other scripts and the other scripts don’t work completely either. But if I change the names back, just the folder names, then everything works again. How can I fix this? Please help me

It’s an NUI thing, leave the resource names as they are or find where to change the NUI stuff so it works under whatever name you like

The NUI file (.js) calls specifically to (“old_resource_name”:callbacks) instead of using (GetParentResourceName():callbacks), thus requiring the main resource name to remain “old_resource_name”, as CFX generates the NUI page based on the resource name. You either need to adjust the .js file to use GetParentResourceName or directly use your new resource name for every callback it attempts to run.

1 Like

you need check .js and found some like: $.post('https://

$.post('https://script_name
and you need change script_name to new

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.