fivem icon indicating copy to clipboard operation
fivem copied to clipboard

NUI pages incorrectly replaced with `gameconfig.xml` placeholder

Open ianfd opened this issue 2 years ago • 4 comments

Hey everyone,

since 10:00AM today we're facing a small issue. This text started to appear. We haven't changed anything in the last 18 hours. Until 3:00AM it worked perfectly fine, now we're facing this issue. It seems to be related to a UI.

Screenshot_2022-04-08_135109

ianfd avatar Apr 08 '22 11:04 ianfd

This isn't 'completely random' (rather some edge case as of https://github.com/citizenfx/fivem/commit/202dfc2ff1110c615f49fb85ba3587b118fd1246), and please provide a repro, as with you providing no info at all this isn't actionable.

blattersturm avatar Apr 08 '22 12:04 blattersturm

This isn't 'completely random' (rather some edge case as of 202dfc2), and please provide a repro, as with you providing no info at all this isn't actionable.

Hi, I have attached the ressource that is causing the issue. (Me and @ianfd are working together on this)

https://drive.google.com/drive/folders/1_GIjwY8rtsTGFgoR1Q9xYbfm6_6s_93c?usp=sharing

NecronomiconCoding avatar Apr 08 '22 13:04 NecronomiconCoding

Right, you need to add your .html/.css/.js files to file, not client_script. This seems like user error, instead, which only worked due to a bug (resources with names containing uppercase being ignored).

For context, a resource named FamilyLife-Tankstelle with the following manifest:

fx_version 'adamant'
game 'gta5'

ui_page "html/index.html"

client_scripts {
	'html/index.css',
	'config.lua',
	'functions/functions_client.lua',
	'source/fuel_client.lua',
	'html/index.html',
	'html/reset.css',
	'html/index.js'
}

author 'FamilyLife'
version '1.0.0'

server_scripts {
	'config.lua',
	'source/fuel_server.lua'
}

exports {
	'GetFuel',
	'SetFuel'
}

client_script '02776.lua'




I'm also a bit worried about this 1 MB .lua file with the weird name. Are you sure you don't have malware?

blattersturm avatar Apr 08 '22 13:04 blattersturm

Thanks @blattersturm

Fixed by adding them as file

Also thats no malware, part of the anti cheat we are using

NecronomiconCoding avatar Apr 08 '22 13:04 NecronomiconCoding