🛠️Config
TZMCAmazonDeliveryConfig = {}
--[[
INSTALLATION
1. Navigate to .../[qb]/qb-core/shared/items.lua
2. Scroll to the bottom of the item list and paste the following text - https://pastebin.com/ufjJ7V6p - It should look like this https://ibb.co/g3frFBv (Bear in mind you can alter the weight of the parcel)
3. Once added, navigate to .../[qb]/qb-inventory/html/images/ - Paste the following picture into the images folder hhttps://ibb.co/RBk60zc. Make sure the file is called 'parcelBox.png'
4. Once added, navigate to .../[qb]/qb-inventory/html/js/app.js
5. Scroll down to around line 400 where you should see a function called 'FormatItemInfo'. Paste the following text before you see the words 'else if' - https://pastebin.com/sh0386va - It should look like this https://ibb.co/ZhdB0Wj
6. You are now done.
]]--
TZMCAmazonDeliveryConfig.MaxDeliveries = 5
TZMCAmazonDeliveryConfig.PaymentType = 'bank'
TZMCAmazonDeliveryConfig.MinimumPayment = 250
TZMCAmazonDeliveryConfig.MaximumPayment = 750
TZMCAmazonDeliveryConfig.CompletedPaymentAmount = 1000 -- This is bonus given to the player for completing all deliveries
TZMCAmazonDeliveryConfig.QuitCooldownTime = 900 -- When a player quits, they will need to wait this long to do another job. This prevents players from trying to get an easy delivery run by quitting and trying again every time.
-- COMAND --
TZMCAmazonDeliveryConfig.StopJobCommand = 'stopjob'
TZMCAmazonDeliveryConfig.StopJobCommandHelpText = "Stop the job you're currently active on"
-- NOTIFICATIONS --
TZMCAmazonDeliveryConfig.UseQBNotify = true
TZMCAmazonDeliveryConfig.NotificationEvent = "" -- If you're using your own notification system, enter the event here. If you leave this blank and set QBNotify to false this will use the FiveM chat to notify the player. The parameters are (text, status) Status can be either 'success' or 'error'.
TZMCAmazonDeliveryConfig.SuccessTitle = 'Success'
TZMCAmazonDeliveryConfig.ErrorTitle = 'Error'
TZMCAmazonDeliveryConfig.ForgotParcel = "Seems you forgot to collect the customer's parcel..."
TZMCAmazonDeliveryConfig.AlreadyInJob = "You're in a job already"
TZMCAmazonDeliveryConfig.RecentlyQuitJob = "You recently quit a job"
TZMCAmazonDeliveryConfig.JobStarted = "Job started, head to the first delivery spot ("..TZMCAmazonDeliveryConfig.MaxDeliveries.." parcels required)"
TZMCAmazonDeliveryConfig.NotInJob = "You're not in a job"
TZMCAmazonDeliveryConfig.NextDelivery = "Deliver the next package"
TZMCAmazonDeliveryConfig.CurrentPoint = "Delivery point"
TZMCAmazonDeliveryConfig.FullDeliveryCompleted = "Delivery completed! You have earned a bonus of $"..TZMCAmazonDeliveryConfig.CompletedPaymentAmount..' for completing all deliveries'
Last updated