Summary
The qbx_core item converter for ox_inventory no longer functions as intended
Reproduction
- Server build 12180 or greater
- Add new item to "qbx_core/shared/items.lua"
- Start the server
- Watch as the file is not written to "ox_inventory/data"
Expected behavior
I expected the data/items.lua in ox_inventory to be overwritten with the converted output from qbx_core
Actual behavior
Due to a recent security change here certain files can no longer be overwritten by an external script without sufficient permission or matching authors from a brief look.
The file fails to be overwritten the return value from SaveResourceFIle is false (with 0 context on why it failed).
Additional context
Due to a recent security change here certain files can no longer be overwritten by an external script without sufficient permission or matching authors from a brief look.
add_filesystem_permission - a new command to grant read/write permissions to a resource for a resource from what I understand. There is no documentation or mention of this anywhere. I tried experimenting myself with this and wasn't able to get anything to happen. added to server.cfg as add_filesystem_permission qbx_core write ox_inventory.
".lua", ".dll", ".ts", ".js", ".mjs", ".cjs", ".cs" - These file types have been marked readonly and can no longer be changed without write permissions
Current Version
1.22.3
Custom Resources
n/a
Summary
The qbx_core item converter for ox_inventory no longer functions as intended
Reproduction
Expected behavior
I expected the data/items.lua in ox_inventory to be overwritten with the converted output from qbx_core
Actual behavior
Due to a recent security change here certain files can no longer be overwritten by an external script without sufficient permission or matching authors from a brief look.
The file fails to be overwritten the return value from
SaveResourceFIleis false (with 0 context on why it failed).Additional context
Due to a recent security change here certain files can no longer be overwritten by an external script without sufficient permission or matching authors from a brief look.
add_filesystem_permission - a new command to grant read/write permissions to a resource for a resource from what I understand. There is no documentation or mention of this anywhere. I tried experimenting myself with this and wasn't able to get anything to happen. added to server.cfg as
add_filesystem_permission qbx_core write ox_inventory.".lua", ".dll", ".ts", ".js", ".mjs", ".cjs", ".cs" - These file types have been marked readonly and can no longer be changed without write permissions
Current Version
1.22.3
Custom Resources
n/a