Skip to content

ox_inventory items conversion no longer functions as intended #652

@FrazzIe

Description

@FrazzIe

Summary

The qbx_core item converter for ox_inventory no longer functions as intended

Reproduction

  1. Server build 12180 or greater
  2. Add new item to "qbx_core/shared/items.lua"
  3. Start the server
  4. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneed reproThis bug report needs confirmation

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions