cheeseman1234 5 Posted March 21, 2024 script loads in server, doesnt save any notes etc, so its broken
cheeseman1234 5 Posted March 21, 2024 SCRIPT ERROR: @cure-notebook/server/server.lua:14: attempt to index a nil value (global 'ox_inventory')
ToastisHomo 0 Posted March 22, 2024 12 hours ago, cheeseman1234 said: SCRIPT ERROR: @cure-notebook/server/server.lua:14: attempt to index a nil value (global 'ox_inventory') Its open source just make it work with ox_inventory. It isnt hard Go to server > server.lua RegisterNetEvent('cure-notebook:updateMetadata:server', function(metadata, slot, title, desc) local src = source if Inventory == "ox_inventory" then local searchResult = exports.ox_inventory:Search(src, 'slots', Config.ItemName) if searchResult and type(searchResult) == 'table' then for _, itemData in pairs(searchResult) do if itemData.slot then local updatedMetadata = itemData.metadata or {} updatedMetadata.content = metadata updatedMetadata.main = {title = title, description = desc} exports.ox_inventory:SetMetadata(src, itemData.slot, updatedMetadata) end end end end end) Youre welcome Posting this here also for any others that dont understand that you can edit open source scripts to work
AllyaM 2 Posted May 30, 2024 I'm trying on esx but nothing happens, I get few errors. I would appreciate it if someone can help out with this.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now