Hey everyone, I have enjoyed a lot of releases from this forum and thought it was my turn to give back.
I have made it myself with a lot of inspiration from different scripts. So thanks to the entire community for sharing so much good stuff.
I know the code isn’t that clean and that it probally could be done more efficiently in a lot of ways, but as my name sugests. I am a noob coder.
So here is my GoPostal Delivery script:
You can make runs to about 400 handpicked locations.
The script chooses one at random and you can deliver multiple packages with the same truck. (Amount can be altered)
After wich you need to return to the depot to restock the van or get a new one.
Pay changes depending on how far you go from the depot.
You can also cancel an ongoing run at the depot. But this will require you to pay for the lost package in full.
Multiple runs with the same van: you can alter this in line 583
-Missiontext (it looks nice)
-Essentialmode (only for the payments, you can replace this easy with your own payment system. (See serverside lua)
-Jobsystem (Serverside validates if you have the correct job to start van runs)
-Simplebanking (For the cancelled runs)
Copy the delivery map to your resources and add it to citmp-server.yml
Make a database entry in jobs system. (Add the jobname & an ID of your choice to the database)
As an example from my database:
job_id job_name salary
12 Delivery guy 100
delivery.rar (14.0 KB)
I hope you enjoy this script. Feel free to alter or use it anyway you see fit.
Edit: Removed some obsolete code and added simple banking to requirements