Advanced Item Throwing & Placing System - NoPixel & ProdigyRP Inspired | [QBCORE/ESX/Standalone]

Take Roleplay to the Next Level – Must Have Inventory Addon!
This script allows players to throw, place and give items while visibly holding them in hand to make roleplaying more immersive! With +250 preconfigured items, including all GTA weapons.

:money_with_wings: PURCHASE HERE [12€ + VAT]: https://jonska-scripts.tebex.io/package/6904116

:movie_camera: PREVIEW HERE: https://www.youtube.com/watch?v=iIiijvR7iUo

Features

  • Throw, place and give items - with visible prop in hand
  • Adjust every item hand placement, rotation and throw force
  • Blacklist items
  • Optimized - Resmon 0.00ms-0.01ms idle with 300+ thrown object
  • Fully synced with everyone
  • Exports to start throwing, stop throwing and disable it
  • Save items to database (optional)
    • Items expire time (configurable)
  • Admin menu
    • Teleport to items
    • Take items
    • Remove items
    • Toggle debugging mode to see all thrown items
  • Open functions
    • Notify
    • Targeting
    • Item Add & Remove to work with every inventory
  • Logs for everything needed

Configuration

  • Debug
    • Enable/disable
  • Item giving
    • Enable/disable
  • Placing
    • Enable/disable
    • Adjust max distance
  • Database
    • Enable/disable
    • Items expire time
  • Admin Menu
    • Enable/Disable Command
    • Enable/Disable Custom event
    • Allowed Groups to access admin menu
  • Logs
    • Enable/Disable
  • Adjust Every Item
    • Throw force
    • Position in hand
    • Rotation in hand
    • Model
  • Default Settings for items
    • Throw force
    • Position in hand
    • Rotation in hand
    • Model
  • Blacklist
    • Disable item from being thrown
  • Rotation
    • Enable/disable to keep entity’s rotation
  • Collision
    • Enable/disable to keep entity’s collision
  • Render Distance
    • How far away items are visible

Open Source (client)

  • Text UI
  • Notify
  • Target

Open Source (server)

  • Item Adding
  • Item Removing
  • Logs

Dependencies

  • Inventory: Ox_inventory / QB/LJ/PS-inventory [Any edited qb-inventory] OR your own system
  • Target: QB-target / ox_target / sleepless_interact / interact system OR your own system
  • Notify: QBCore / ox_lib OR your own system
  • SQL (optional): oxmysql
  • Admin Menu (optional): ox_lib

Other Releases
Shop Robbery - 4.0 inspired
Roof Running - 4.0 Inspired
Jonska Recycling - Rust Inspired

Code is accessible Partly
Subscription-based No
Lines (approximately) 2000
Requirements Inventory system, targeting or interact system and notify system
Support Yes
[/quote]
6 Likes

Update 1.0.1

- Added a new server side export to add objects without needing to throw/place them (useful for robberies etc.):
exports['jonska-itemthrowing']:throwingAddObject(data, coords, rotation, SaveToDatabase)
- Minor changes to logic
6 Likes

Update 1.0.2

Change Log

- Added a new client side export to add thrown zones. When correct item hits it, triggers a custom event:
  exports['jonska-itemthrowing']:addThrowZone(itemName, amount, coords, radius, oneTimeUse, eventToTrigger)
  - Parameters:
    - itemName: string / false
    - amount: number
    - coords: vector3
    - radius: number
    - oneTimeUse: boolean
    - eventToTrigger: string / false
- Fixed ox_target giveitem function
- Added a check if player can pick up the item before removing it
- Some little optimization

Files Changed
client/client.lua, client/open.lua, server/server.lua, server/open.lua

Update 1.0.3

- Added eventArgs for addThrowZone export
  - exports['jonska-itemthrowing']:addThrowZone(itemName, amount, coords, radius, oneTimeUse, eventToTrigger, eventArgs)
  - eventArgs: table / false
- Made it even secure to prevent any duplication

Update 1.0.4 (Support for my Item Drops script)

- Added support for my Item Drops script (https://jonska-scripts.tebex.io/package/7018454)
- Some little optimizing
- Instead of giving the whole stack, it gives the set amount [Ox invnetory] 

Files Changed
client/client.lua , server/server.lua , README.md