[FREE] Campfire

Campfire

Simple item with associated prop that can be placed in game with fire particle effect that can be activated and deactivated via target.

Code is accessible Yes
Subscription-based No
Lines (approximately) cfg+client+server 280
Requirements ox_lib, ox_target, ox_inventory or qb-core, qb-target, qb-inventory
Support No

Download

Preview

5 Likes

Really cool script. Can you also do it on QB with QB Inventory?

2 Likes

I updated the script making it compatible with qb-core too. Let me know how it goes and thanks a lot for the feedback

1 Like

really cool script, ty for sharing this.

1 Like

Nice, fast update to QBCore :+1:

1 Like

Does it work with quasar inventory?

The script is opensource so you can modify it according to your needs. however you just need to change the server side exports for the items management and the item registration in the inventory.
exports[‘qs-inventory’]:AddItem(src, Config.Item, 1) for add item and
exports[‘qs-inventory’]:RemoveItem(src, Config.Item, 1). for item registration if you use qb I don’t think you need to do anything but if you use esx you need to go to qs-inventory/shared/items.lua and add this :

['campfire'] = {
    name = 'campfire',
    label = 'Campfire',
    weight = 100,
    type = 'item',
    image = 'campfire.png',
    unique = true,
    useable = true,
    description = 'Campfire',
    client = {
        export = 'campfire.StartPropPlacement'
    },
}

nice work

2 Likes

can i use your prop in my free camping script?

1 Like

But absolutely not! you’re joking ? ahahah of course you can, it’s a prop and I don’t see what the problem is :man_shrugging:

1 Like

I am accepting the following error

error during NUI callback useItem: @ox_inventory/modules/items/shared.lua:3: No such export StartPropPlacement in resource campfire

@BostonGeorgeTTV

did you run the script in server.cfg after ox_inventory?

Yes, is it only functional in QB, or can it be used in QBX?

@BostonGeorgeTTV