About
Simple and easy to install garbage job script I made for ESX, the script utilizes third eye and is fully configurable
Dependencies
Previews
Video:
Config:
Config = {}
-- General Config
Config.Notify = 'ox' -- 'ox'/'esx'/'other'
Config.Progress = 'circle' -- 'circle'/'bar'
-- Model Config
Config.Models = {'prop_dumpster_01a', 'prop_dumpster_02a', 'prop_dumpster_02b'}
-- Job Config
Config.RequireJob = false
Config.Job = 'garbage'
-- Bags Config
Config.PayPerBag = 20
Config.MaxBags = 3
-- Vehicle Config
Config.VehicleModel = 'trash'
Config.VehicleSpawn = vector4(-324.4425, -1523.8933, 27.2586, 266.4719)
-- Location & Blip Config
Config.JobClock = vector3(-322.2470, -1545.8246, 31.0199)
Config.Blip = {
Show = true,
Sprite = 318,
Color = 25,
Scale = 0.8,
}
Download
3 Likes
Please make sure to properly license your work.
1 Like
Ok, I’ve never licensed before lol i’ll try to learn how to do that.
You can do it on github.com if you upload there youbwill be asked to do that.
So just take a lool there are multiple templates.
J_S1
July 20, 2024, 5:26am
5
I am getting this;
SCRIPT ERROR: @es_extended /imports.lua:1: No such export getSharedObject in resource es_extended.
I think getSharedObject is deprecated:
maybe use this instead
if (GetResourceState("es_extended") == "started") then
if (exports["es_extended"] and exports["es_extended"].getSharedObject) then
ESX = exports["es_extended"]:getSharedObject()
else
TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end)
end
end
so both are supported then by default
J_S1
July 24, 2024, 11:17pm
7
Ah, I fixed it with this:
I don’t think this is the intended way to use esx exports my way was the official intended way to use the frameworks integration
abonan
July 26, 2024, 5:18pm
9
How are they linked with Xp