[FREE] Delivery System

Thumbnail

  • Orders will be the same for all players, once a person receives the order, it will no longer appear in the others.
  • If players mark, scrip will receive a notification for each new order.
  • 0.00ms when out of use. 0.03 ms when in use.
  • open ui command is “openDelivery”
  • close ui command if bugged “closeDelivery”
  • In the config, you can set the timing with which new orders will be placed, which items, how many pieces, price, duration and maximum number of orders will be ordered.
Config Photo

  • Its ready for ESX and QBCORE
  • You can integrate it into your framework by editing the server event.
    RegisterNetEvent('plt_delivery:Delivey')
Event Photo

  • With the client side event, you can enable the UI to be opened from any other script you want.
    TriggerEvent("plt_delivery:TakeOrders")
Trigger Photo

trigger

  • You can use it in your own notification system by changing its function.
Notification Photo

singlenotify

if you just want to tie it to a job. for ESX
  • add to client.lua
local PlayerData = {}
Citizen.CreateThread(function(...) 
  TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
  if ESX == nil then  Citizen.Wait(2000)
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj; end) 
  end 
  while ESX.GetPlayerData().job == nil do Citizen.Wait(10) end
  PlayerData = ESX.GetPlayerData()    
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
  PlayerData.job = job
end)
  • and
RegisterNetEvent('plt_delivery:TakeOrders')
AddEventHandler('plt_delivery:TakeOrders', function()
    TriggerServerEvent("plt_delivery:SendMeOrders")
end)
  • change to
RegisterNetEvent('plt_delivery:TakeOrders')
AddEventHandler('plt_delivery:TakeOrders', function()
  if PlayerData.job.name == "courier" then
    TriggerServerEvent("plt_delivery:SendMeOrders")
  else
    singleNotify("error","You are Not Courier",5000)
  end
end)
The version added to the shop locations with qtarget.

Thank you to @SimpleGamerDK for the arrangement.
client.lua (9.2 KB)

My Other Script:

22 Likes

Thank you!

1 Like

Hello , i need help. Why can’t I use it? It’s stuck, can’t close or press orders at all. :smiling_face_with_tear:

2 Likes

i thing you changed the script name. am i right?

2 Likes

very cool! very clean ui! great work !

1 Like

your welcome :slight_smile:

This is really cool. I set it up to work with qtarget instead of command and have it as a delivery system for 24/7 stores around the map.

Really cool script over all and the fact that it’s free. Even better. Good job mate

2 Likes

thank you so much. have fun

Oh this Work !!! Thank you very much :smiling_face_with_three_hearts:

1 Like

your welcome. have fun :slight_smile:

1 Like

it looking really cool , thanks great work

1 Like

Are these player made deliveries or random deliveries for the orders? So pretty much can this be a “job” in a way

1 Like

Random orders are added to the list, players choose what they want from it and deliver it. yes it can be made into a job.

for example: for esx:

  • add to client.lua
local PlayerData = {}
Citizen.CreateThread(function(...) 
  TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
  if ESX == nil then  Citizen.Wait(2000)
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj; end) 
  end 
  while ESX.GetPlayerData().job == nil do Citizen.Wait(10) end
  PlayerData = ESX.GetPlayerData()    
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
  PlayerData.job = job
end)
  • and
RegisterNetEvent('plt_delivery:TakeOrders')
AddEventHandler('plt_delivery:TakeOrders', function()
    TriggerServerEvent("plt_delivery:SendMeOrders")
end)
  • change to
RegisterNetEvent('plt_delivery:TakeOrders')
AddEventHandler('plt_delivery:TakeOrders', function()
  if PlayerData.job.name == "courier" then
    TriggerServerEvent("plt_delivery:SendMeOrders")
  else
    singleNotify("error","You are Not Courier",5000)
  end
end)

how did you set it up to work with qtarget?

1 Like

Send you a dm

1 Like

did you got it ?

dm’d it to you

1 Like

is this available for p layers to order ? or just npc

1 Like

just to npc

The script is great and should cost something !!!

this script has so much potential! and is easily expandable!

thanks for that and i hope to see more great scripts like this from you ^^

1 Like