[FREE] MT Halloween Objects | Simple halloween objects placer

imagem

MT Halloween Objects
Simple halloween objects shop and placer for QBCore, ESX and QBox

Preview
Download

Features

  • Shop with more than 30 halloween items already seted up
  • Use items and place objects wherever you want
  • Objects stay where they’ve been placed even after RR (SQL save)
  • Synced with all server players

Dependicies

  • ox_lib
  • ox_target or qb-target
  • qbx-core or qb-core or es_extended (ESX)
  • qb-inventory or ox_inventory
  • Halloween Props
Code is accessible Yes
Subscription-based No
Lines (approximately) Around 400
Requirements qb-core/qbx-core, ox_target, Renewed-Lib, ox_inventory/qb-inventory, ox_lib
Support Yes
6 Likes

really nice work bro thank you making it

1 Like

Thanks :slight_smile:

Thank you for the awsome share !

1 Like

Awesome man! Definetly will be checking this out, appreciate it!

1 Like

When i start the script it gives me this

Is my config correct ?

Or do i have to place it the correct order in my cfg ?

Well, that sucks, i really liked the script. No use for esx…

1 Like

@MARTTTINS got this error with the script

SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:867: table index is nil

Add Config.CoreName at config, I tought I added that but just forgot, will add when I get home.

1 Like

Will fix that when I get home, sorry…

2 Likes

Fixed, sorry @ProtonHorse and @Biskfather !

1 Like

Thank you so much Martins ! Will be checking it out soon.

[script:mt-halloweenO] SCRIPT ERROR: @mt-halloweenObjects/server/server.lua:13: attempt to index a nil value (global ‘Core’)

Evrything works but when you target the prop it removes it but you won’t get the item back.
Also if you have 2 items and you place 1 on the ground, when you target the prop it will remove it from the ground but also from inventory.

I think I found the culprit

    local src = source
    MySQL.query('DELETE FROM `halloween_objects` WHERE ID LIKE ?', { id })
    updateObjects()
    if Config.Core == 'qb' then
        local Player = Core.Functions.GetPlayer(src)
        Player.Functions.AddItem(item, 1)
    else
        local Player = ESX.GetPlayerFromId(src)
        ---- Player.removeInventoryItem(item, 1)   ---- Removes the item from the ground + inventory
              Player.addInventoryItem(item, 1)         --- Remove the Prop and add to inventory
    end
end)````

Oh, that was as remve and need to be add, yeah that’s the issue

anyone else having trouble getting the props to spawn they just dont show up

Did you installed the props correctly?

put them in the server and ran it yeah? it looks to be just drop and run

Runned script SQL and changed things at config to fit your server?

If you don’t see the props, then you aren’t streaming the props the right way. Everything works.