You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This should be addressed by moving the functionality out of lua and onto a webpage I think. Alternatively, we could keep it in lua, but save the output to a file to be copied and pasted by a user into the ox_inventory config. I think the webpage solution will be more convenient for users though.
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
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
The text was updated successfully, but these errors were encountered: