[PAID] OT Lumberjack

Interactive lumberjack job

Interactive lumberjacking job for your roleplay server. Players want to get away from the hustle of the city? or just want to take out there anger? Send them to the lumber yard for some tree chopping therapy! Even better, the more they chop the more they earn with the built-in XP and levelling system. All settings are configurable and it supports multiple zones. I have protected the server events and added server sided per-client spam prevention to prevent bad actors spamming SQL queries. This was developed for and is used on my own server so has been tested in a live environment.

  • Configure multiple locations
  • Supports any trailer.
  • Support for targeting systems (Pre-configured for Qtarget)
  • Will work with any framework/inventory if setup correctly. all framework/inventory related functions are open-source. (Pre-configured to support ESX and QB)

[Config preview]

Config = {}

Config.Locale = 'en'
Config.Framework = 'ESX' -- ESX | QBCORE 
Config.inventory = 'OX' -- ESX | QBCORE | OX

Config.qtarget = true
Config.UseAddMoney = false
Config.payType = 'cash' -- cash or bank
Config.BonusPerLog = true
Config.BonusPerLogAmount = 1
Config.cleanupTime = 5 -- cleanup timer in minutes
Config.BasePay = 200 -- base pay without skill level bonus
Config.RankPayMultiplier = 10 -- this number * skill level is added to the basepay.
Config.MaxSkillRank = 30 -- max skill level
Config.skillMultiplier = 2.5 -- multipluer of xp per level, higher number means it will take longer to level up
Config.hackEvent = '' -- Event to trigger when a player is suspected of abusing server event.

Config.Zones = {
    ['cedar'] = {
        coords = vector3(-514.27, 5464.43, 80.66), -- coordinates for middle of harvesting zone
		propOffset = 2.1, -- prop Z offset
        dropoff = vector3(-510.17, 5269.21, 80.0), -- drop off point to drop off full trailer of logs.
        mechanicCoords = vector3(-567.63, 5254.76, 70.5), -- vehicle ped location
        mechanicHeading = 67.0, -- vehicle ped heading
        mechanicPed = `S_M_M_AutoShop_02`, -- vehicle ped model
        mechanicSprite = 402,
        mechanicColor = 25,
        vehicle = 'bison', -- vehicle to spawn
        vehicleCoords = vector3(-580.55, 5257.35, 69.5), -- vehicle spawn location
        vehicleHeading = 330.0, -- vehicle spawn heading
        trailerCoords = vector3(-583.389831, 5251.874023, 70.456832), -- trailer spawn location
        trailerHeading = 334.0, -- trailer spawn heading
		prop = 'test_tree_cedar_trunk_001', -- tree prop to be used
        spawnAmount = 20, -- amount of trees to spawn
        item = 'cedar_log', -- item to be given to player
        itemAmount = 1, -- amount of logs to give to player
        xpReward = 5, -- xp reward for harvesting a tree
        cutTime = 15000, -- time in milliseconds to cut a tree
        name = 'Cedar trees', -- blip name
        color = 25, -- blip color
        sprite = 311, -- blip sprite
        radius = 0.0 -- radius of blip
    }
}

Config.trailerData = {
    [`trailersmall`] = {
        offset = vector3(1.0, -1.0, -0.2),
        newrowoffset = vector3(1.5, -1.0, -0.2),
        maxlogs = 15
    },
    [`trflat`] = {
        offset = vector3(1.0, -1.0, 0.675),
        newrowoffset = vector3(1.5, -1.0, 0.675),
        maxlogs = 30
    }
}

Script is protected using tebex escrow system.

[Showcase]

Preview

[Purchase]

Escrow
Open source

[Discord]

Discord

Code is accessible Partially
Subscription-based No
Lines (approximately) 750+
Requirements ox_lib, oxmysql
Support Yes

Other scripts:
Hide In Trunk
Recycler

2 Likes

Amazing

2 Likes

this looks great!

Would love to see when a player levels up, maybe it gives him a bigger trailer and truck - all the way up to semi?

2 Likes

Could definitely do that. i’ll see if i can get something done tonight :slight_smile:

2 Likes

epicccc af. gonna def get this

2 Likes

UPDATED:

  • Player progression, higher levels mean they can access bigger trucks/trailers to earn more per run.

  • Added support for Qtarget and qb-target throughout the script. You can now harvest with a targeting system etc, All code related to targeting is also open source.

  • Switched out MySQL for oxmysql.

1 Like

Could you make it possible to talk and move the camera while chopping down trees? I’m on a server that has your scripts, but they can’t change that.