🛠️Config
TZMCGardnerJobConfig = {}
--[[
INSTALLTION
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/GF1CANsN - It should look like this https://ibb.co/51qpQXX
3. Once added, navigate to .../[qb]/qb-inventory/html/images/ - Paste the following picture into the images folder https://ibb.co/Z13FwNL. Make sure the file is called 'shovel.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/438Egvep - It should look like this https://ibb.co/8bK3h4P
6. You are now done, if you're having issues please contact hello@tzmc.dev and we can help out.
]]--
TZMCGardnerJobConfig.MaxJobLocations = 3
TZMCGardnerJobConfig.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 job run by quitting and trying again every time.
-- TARGET --
TZMCGardnerJobConfig.StartJobLabel = "Start Job"
TZMCGardnerJobConfig.CollectShovelLabel = "Collect Shovel"
-- COMMAND --
TZMCGardnerJobConfig.StopJobCommand = 'stopgardenjob'
TZMCGardnerJobConfig.StopJobHelpText = "Stop the gardner job you're on"
-- MARKER --
TZMCGardnerJobConfig.JobMarker = { -- Color of the job marker
Red = 255,
Green = 153,
Blue = 0,
}
-- NPC --
TZMCGardnerJobConfig.StartJobNPC = {
model = 's_m_m_gardener_01',
x = -1349.18,
y = 115.17,
z = 56.38,
h = 229.56,
}
-- PAYMENT --
TZMCGardnerJobConfig.MinimumPayment = 250
TZMCGardnerJobConfig.MaximumPayment = 750
TZMCGardnerJobConfig.CompletedPaymentAmount = 1000 -- This is bonus given to the player for completing all jobs
TZMCGardnerJobConfig.PaymentType = 'bank'
-- NOTIFICATIONS --
TZMCGardnerJobConfig.UseQBNotify = true
TZMCGardnerJobConfig.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'.
TZMCGardnerJobConfig.SuccessTitle = 'Success'
TZMCGardnerJobConfig.ErrorTitle = 'Error'
TZMCGardnerJobConfig.JobStarted = "Job started - Head to the first location"
TZMCGardnerJobConfig.NotInJob = "You're not in a job"
TZMCGardnerJobConfig.StopJob = "You have stopped your job."
TZMCGardnerJobConfig.NextJob = 'Head to the next job'
TZMCGardnerJobConfig.CurrentPoint = "Job point"
TZMCGardnerJobConfig.FullJobCompleted = "All jobs completed! You have earned a bonus of $"..TZMCGardnerJobConfig.CompletedPaymentAmount..' for completing all jobs'
TZMCGardnerJobConfig.AlreadyInJob = "You're in a job already"
TZMCGardnerJobConfig.RecentlyQuitJob = "You recently quit a job"
TZMCGardnerJobConfig.FixElectricalBox = 'Press ~INPUT_CONTEXT~ to begin.'
TZMCGardnerJobConfig.MissingItem = "You need something to dig this out"
-- JOB LOCATIONS --
TZMCGardnerJobConfig.JobLocations = {
vector3(-1375.11, 58.04, 53.92),
vector3(-1376.01, 53.42, 53.88),
vector3(-1369.83, 5.62, 53.67),
vector3(-1352.71, -11.41, 53.55),
vector3(-1359.18, -28.76, 53.05),
vector3(-1378.7, -30.7, 53.4),
vector3(-1391.3, -21.91, 53.57),
vector3(-1396.72, 1.44, 53.09),
vector3(-1401.03, 20.09, 53.12),
vector3(-1328.14, 2.25, 51.94),
vector3(-1316.19, -19.53, 50.15),
vector3(-1392.09, 149.65, 56.52),
vector3(-1351.05, 160.41, 57.54),
vector3(-1346.86, 179.47, 58.3),
vector3(-1313.93, 168.79, 58.22),
vector3(-1294.74, 151.39, 58.59),
vector3(-1280.96, 141.2, 58.24),
vector3(-1269.73, 143.49, 58.5),
vector3(-1257.81, 174.87, 60.81),
vector3(-1245.57, 170.51, 60.6),
vector3(-1226.59, 167.01, 61.5),
vector3(-1204.5, 165.0, 62.69),
vector3(-1191.99, 165.58, 63.1),
vector3(-1171.37, 166.12, 63.32),
vector3(-1158.05, 169.63, 63.33),
vector3(-1146.58, 174.98, 62.93),
vector3(-1132.02, 182.01, 63.86),
vector3(-1196.48, 209.59, 67.19),
vector3(-1205.8, 205.23, 66.37),
vector3(-1182.09, 206.14, 66.53),
vector3(-1144.75, 223.4, 66.52),
vector3(-1134.48, 208.77, 65.0),
vector3(-1112.96, 197.44, 64.25),
vector3(-1120.63, 190.13, 64.42),
vector3(-1103.17, 184.82, 63.26),
vector3(-1090.59, 158.59, 61.36),
vector3(-1127.4, 139.82, 61.47),
vector3(-1144.84, 121.48, 59.81),
vector3(-1169.4, 109.01, 59.25),
vector3(-1206.97, 103.05, 58.03),
vector3(-1241.25, 90.21, 55.78),
vector3(-1260.71, 86.28, 53.85),
vector3(-1295.77, 99.52, 55.43),
vector3(-1313.65, 84.92, 54.92),
vector3(-1334.12, 98.73, 55.96),
vector3(-1328.77, 46.87, 53.56),
vector3(-1304.25, 68.96, 54.1),
vector3(-1290.22, 55.56, 51.52),
vector3(-1272.42, 59.1, 51.36),
vector3(-1229.5, 81.91, 55.09),
vector3(-1185.91, 72.56, 55.95),
vector3(-1159.11, 56.29, 54.52),
vector3(-1145.15, 54.87, 55.08),
vector3(-1139.56, 20.05, 49.84),
vector3(-1121.48, 7.06, 49.62),
vector3(-1110.47, -9.55, 50.4),
vector3(-1092.97, 5.65, 50.79),
vector3(-1100.21, 25.18, 51.12),
vector3(-1083.08, -22.09, 50.59),
vector3(-1067.51, -13.69, 50.43),
vector3(-1054.78, -3.28, 50.55),
vector3(-1036.4, 17.07, 50.61),
vector3(-1024.46, 41.77, 50.88),
vector3(-1028.03, 53.61, 51.08),
vector3(-1038.27, 53.23, 50.99),
vector3(-1008.16, 18.59, 50.04),
vector3(-1005.59, -14.71, 46.8),
vector3(-1019.17, -28.98, 45.85),
vector3(-1003.77, -44.53, 43.96),
vector3(-986.26, -39.83, 43.73),
vector3(-970.15, -45.96, 42.94),
vector3(-964.86, -61.38, 41.87),
vector3(-941.84, -61.95, 40.3),
vector3(-945.72, -81.67, 40.04),
vector3(-955.98, -103.53, 40.21),
vector3(-976.44, -111.1, 39.6),
vector3(-989.07, -93.21, 41.21),
vector3(-1000.18, -113.58, 41.03),
vector3(-1000.59, -97.41, 41.59),
vector3(-1007.83, -77.97, 42.76),
vector3(-1026.39, -55.03, 44.31),
vector3(-1166.54, -5.88, 47.57),
vector3(-1122.21, -32.69, 47.78),
vector3(-1087.87, -42.56, 48.59),
vector3(-1079.59, -56.06, 45.85),
vector3(-1059.8, -52.7, 46.35),
vector3(-1020.63, -84.58, 43.49),
vector3(-1058.12, -97.84, 42.55),
vector3(-1083.33, -74.27, 43.1),
vector3(-1110.37, -73.71, 43.33),
vector3(-1146.73, -58.97, 44.14),
vector3(-1162.79, -61.18, 45.1),
vector3(-1165.61, -77.05, 45.52),
vector3(-1175.01, -65.79, 45.63),
vector3(-1188.98, -69.55, 44.97),
vector3(-1186.89, -63.23, 45.72),
vector3(-1196.9, -61.45, 44.92),
vector3(-1206.25, -52.13, 45.51),
vector3(-1218.7, -44.64, 46.15),
vector3(-1245.68, -30.04, 46.85),
vector3(-1247.94, -19.06, 47.07),
vector3(-1265.68, -6.93, 48.41),
vector3(-1244.44, 2.12, 48.5),
vector3(-1233.93, -3.91, 48.16),
vector3(-1214.63, -19.92, 46.58),
vector3(-1210.4, -29.48, 45.74),
vector3(-1180.22, -31.33, 45.2),
vector3(-1165.14, -42.8, 45.03),
vector3(-1287.3, 25.74, 50.66),
vector3(-1302.82, -0.89, 50.43),
vector3(-1317.52, 35.59, 53.55)
}
Last updated