[ESX] Garbage Job with ox_target and ox_lib

Prewiew:

Download:

GitHub - 1evolve-1/Garbage-Job

Resmon:

0.00/0.01 idle

Features:

Dynamic Collection Points: Randomly generates garbage collection points from a predefined list, ensuring a varied gameplay experience.

Object Management: Utilizes prop_ld_rub_binbag_01 for realistic trash bag props, with proper handling to avoid clutter.

Player Interaction: Players can interact with garbage props to collect them, utilizing ox_target for smooth user experience. A notification informs players about their actions.

Vehicle Integration: Provides functionality to spawn a trash truck for players at the beginning of the job, allowing for immersive role-play.

Animation Support: Includes animations for picking up and throwing away trash, enhancing the realism of the actions.

Server Events: Tracks collected trash and notifies players when to return to the vendor for payment.

Vendor Interaction: An NPC (garbage vendor) is created for players to complete their job, with a blip on the map for easy navigation.

Installation:

Ensure you have ESX and ox_target installed on your server.

Add the script to your resources and ensure it is started in your server.cfg.

Configure the collection locations and vendor coordinates in the Config table within the script.

Usage:

Players can start the garbage collection job by interacting with the vendor NPC.

Collect trash from designated locations and dispose of it back at the vendor for rewards.

7 Likes

nice work :100:

1 Like

The vehicle is not removed after the work is completed, causing the vehicle to remain there.

1 Like

Nice work but i look one little error.

client.lua line 307 you have : exports.ox_target:addGlobalPed({

But the true it’s this : exports.ox_target:addLocalEntity(npc, {

It’s problem because the target it’s on all Ped if you use the first export.

And “coord = venditoreCoords” are not a TargetOptions for ox_target, you need to delete line 310 and 319 :wink:

2 Likes

yep, that’s right “antykors”, you need to fix the code

1 Like

Thank you all for your collaboration, version 1.0.1 has been released on github with all the various improvements Release 1.0.1 · 1evolve-1/Garbage-Job · GitHub

in this version it was done Release 1.0.1 · 1evolve-1/Garbage-Job · GitHub

1 Like

Thank you I really appreciate it :wink:

3 Likes