[QBCore/ESX] Usable items

sinor-usable_items

  • This script allows players to use items with animations, props, and optional events or exports. It supports both QB-Core and ESX frameworks.
  • with this script server owners can create items with unique uses base on there players and the rp .

Features

  • Play animations when using an item.
  • Attach props to the player with proper offsets and rotations.
  • Remove animation and prop when pressing X or using duration.
  • Trigger custom Client events when using specific items.
  • Execute external exports for advanced interactions.

dependences

  • QBCore or ESX

Configuration

  • Modify config.lua to define usable items:
Config.usable_items = {
    notepad = {
        animDict = "missheistdockssetup1clipboard@base", -- dictionary name get here : https://forge.plebmasters.de/animations
        animName = "base", -- name get here : https://forge.plebmasters.de/animations
        prop = "prop_notepad_01", -- get them here : https://forge.plebmasters.de/objects
        bone = 18905, 
        offset = {x = 0.1, y = 0.02, z = 0.05}, -- offset of the bone
        rotation = {x = 10.0, y = 0.0, z = 0.0},-- rotation of the bone
        one_use = false, -- if true the item will be removed after one use
        duration = 0, -- animation time if 0 then player have to cancel it with "x"
        event = "EventName", -- Optional event trigger
        exports = function() exports["Resource"]:Function() end -- Optional export call
    },
}

Preview : Watch here

Tebex : here

GitHub : here

other scripts
Standalone|AdvancedZombieSystem
Standalone|ZombieSystem
Standalone|VehicleSpawner
standalone|SurvivalHUD
QBCore|RobberyCreator
QBCore|SafeZone
QBCore|Shop
QBCore|WeatherSync
QBCore|PhoneStoreRobbery
QBCore|CamperHousing
QBCore|LootBags
ESX|LootBags
ESX/QBCore|InGameMusic
ESX/QBCore|RadiationZones
ESX/QBCore|LootAreas
ESX|QBCore|VehicleCrafting

Support:
you can join my discord for any support ! Sinor System

Code is accessible Yes
Subscription-based Yes
Lines (approximately) 140
Requirements QBCore or ESX
Support Yes
4 Likes