-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
bugtriageNeeds a preliminary assessment to determine the urgency and required actionNeeds a preliminary assessment to determine the urgency and required action
Description
What happened?
its not possible with load / save resorucefile to edit the fxmanifest of the fx resoruces (monitor, yarn, webpack, chat)
if anticheats try to add a shared lua to them have no perms but it is important that works to prevent game injections from cheats etc. a lot of cheats inject code directly into runtime and execute own code in client resources.
Expected result
read / write permissions for fx resources
Reproduction steps
local function installAntiInjection()
local directive = ('shared_script "@%s/shared.lua"'):format(GetCurrentResourceName())
local content = LoadResourceFile("monitor", "fxmanifest.lua")
if not content then return print("^1[AntiInjection] fxmanifest.lua not found ^0") end
if content:find(directive, 1, true) then
return print("^3[AntiInjection] Already installed ^0")
end
SaveResourceFile("monitor", "fxmanifest.lua", directive .. "\n" .. content, -1)
print("^2[AntiInjection] Installed successfully ^0")
end
-- error: directory not found (for all fx resources)
Importancy
Unknown
Area(s)
FXServer
Specific version(s)
FiveM 25987 and higher (newest server builds)
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugtriageNeeds a preliminary assessment to determine the urgency and required actionNeeds a preliminary assessment to determine the urgency and required action