[ESX/QB] World Interactions | Interact With Props Around The Map!

Samurai Development’s World Interaction Script

Hey everyone hope your are doing well today! Today I bring my World Interactions script adding to my collection of free resources! I do hope you guys enjoy it, if you have any suggestions for props to add I am open to it as this resource is a growing resource that will get bigger and bigger!

Webstore: Click Me!

Script Info:

This script will elevate your server and allow for loads of interactable objects around the map! No extra prop scripts needed to place things down as this works with any props around the world or addon! Download this resource and elevate your server today!

Demo: Click Me For Video!

Features:

  • Uses Smart Syncing System
  • Interact With Any Configured Object On Default Map
  • Useable Chairs (Sit In Chairs)
  • Useable Dumpsters (Search & Hide In)
  • Useable Trash Cans (Search)
  • Useable Port-A-Potties (Hide In)
  • Usable Toilets (Use Standing/Sitting)
  • Usable Vending Machines (4 Different Machine Types Pre Configured)
  • Parking Meters (Can Use / Can Check For Payment / Can Rob)
  • Easy To Configure & Setup
  • Script Will Continue To Improve With More Interactable Objects In The Future

Requirements:

  • ESX LEGACY OR QBCORE (Needed)
  • OX_LIB (Needed)
  • QB-Target/OX-Target (Optional)

Download:

Tebex: Click Me!
Github: Click Me!

16 Likes

nice script! i like how you make everything so customizable, thank you for this great script.
my suggestion for prop to add in future is maybe stuff like hospital bed, crate, treasure chest, abandoned cars and stuff we can search for people like me who wanted to add script like this into apocalyptic server, they can have different kind of loot for each different category, i will be adjusting it to my usage but if you can add this update it would be really nice.

image
btw theres a typo in server script

1 Like

nice! love it. But one thing is getting in my way, the resmon… it takes a lot because of your loops for checking Entity, such as EnumerateEntities. Could you improve that?

yeah maybe a needet item for chest etc. like “weapon_crowbar” and they lose durabiltiy (ox inventory) and a trigger for dispatch for selcted items

like go to a abandoned car, need crowbar and “collect” scrap metal or go to a weapon chest, need crowbar to open this and a “dispatch” send to the “police”

Thank you for the suggestion and I will fix that pesky file name today! I will look into incorporating some of your ideas!

Unfortunately because of how the script works without a target system most likely not. It is one the most optimized ways to look for nearby entities without the incorporation of a target system.

My suggestion is to use a target system. I was only able to hit a max of 0.05 Ms without using a target system.

1 Like

I will look into adding these in a future update :slight_smile:

Nice script!! :wink:

Thanks!

Update 1.0.1 - World Interactions Script

Changes:

  • Fixed Misspelled File

File Changes: (From Last Update)

  • src/server/chairs.lua (Added)
  • src/server/charis.lua (Removed)

Download:

It would be possible to add the bed to lie down ?

I can look into adding this :slight_smile:

1 Like

Okay good to know, ill check that out. Would be greater if i could use textui, looks in my opinion better. But still - good job on it.

Nice sctipt.

Not work icon ox_target ;(

love it…
but i found 1 bug with Trashcan…
after searching and we move trashcan,we can search again and again…so player can just spam 1 trashcan repeatedly

1 Like

so checked that again, indeed cpu goes down but % is still high because its in an loop. so it goes from 0 to 5 in 1sec and down again all the time

I will look into making it to where you can only search them of they are right side up.

The loops are not enabled when target is enabled per the client/main.lua. If you are referring to the loops in events there is no way to escape those as the camera controls have to be processed.

1 Like

love the resource, so pretty much this could replace any recycling job basically? since theres already an activity to search dumpsters and trashcans?

Yes for searching purposes