GithubHelp home page GithubHelp logo

kloudzxc / kloud-farmjob Goto Github PK

View Code? Open in Web Editor NEW
35.0 2.0 13.0 146 KB

Advanced Configurable Farm Job [QB/QBOX/ESX]

License: GNU General Public License v3.0

Lua 100.00%
esx fivem qbcore roleplay

kloud-farmjob's Introduction

kloud-farmjob

Dive into the world of a simple farmer, gather crops and sell it for money!

Features

  • Highly Configurable
  • Easily Add Locations
  • Highly Optimized (0.00ms Idle & 0.00 ~ 0.09 ms Active)
  • Usage of Targeting Script for more immersive experience
  • Smooth Animations

Preview

https://youtu.be/xaWnb6a1-Uc

Dependencies

Required

Framework

Target

Inventory

Installation

Join my Discord Server for updates

Configuration

Language

Add this to your server.cfg

setr ox:locale en

server.cfg

ensure FRAMEWORK # es_extended / qb-core
ensure ox_lib
ensure TARGET # ox_target / qb-target
ensure INVENTORY # ox_inventory / qb-inventory / lj-inventory
ensure kloud-farm

For qb-core

qb-core\shared\items.lua

    ['potato']                              = {['name'] = 'potato',                                ['label'] = 'Potato',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'potato.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Po-ta-to'},
    ['dirty_potato']                              = {['name'] = 'dirty_potato',                                ['label'] = 'Dirty Potato',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'dirty_potato.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Po-ta-to'},
    ['tomato']                              = {['name'] = 'tomato',                                ['label'] = 'Tomato',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'tomato.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'To-ma-to'},
    ['dirty_tomato']                              = {['name'] = 'dirty_tomato',                                ['label'] = 'Dirty Tomato',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'dirty_tomato.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'To-ma-to'},
    ['coffee_beans']                              = {['name'] = 'coffee_beans',                                ['label'] = 'Coffee Beans',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'coffee_beans.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Wakey wakey!'},
    ['dirty_coffee_beans']                              = {['name'] = 'dirty_coffee_beans',                                ['label'] = 'Dirty Coffee Beans',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'dirty_coffee_beans.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Wakey wakey!'},
    ['cabbage']                              = {['name'] = 'cabbage',                                ['label'] = 'Cabbage',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'cabbage.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Let-tuce? No!'},
    ['dirty_cabbage']                              = {['name'] = 'dirty_cabbage',                                ['label'] = 'Dirty Cabbage',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'dirty_cabbage.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Let-tuce? No!'},
    ['orange']                              = {['name'] = 'orange',                                ['label'] = 'Orange',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'orange.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'The talking orange!'},
    ['dirty_orange']                              = {['name'] = 'dirty_orange',                                ['label'] = 'Dirty Orange',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'dirty_orange.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'The talking orange!'},
    ['trowel']                              = {['name'] = 'trowel',                                ['label'] = 'Trowel',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'trowel.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Mini-shovel yes'},
    ['shovel']                              = {['name'] = 'shovel',                                ['label'] = 'Shovel',             ['weight'] = 350,           ['type'] = 'item',         ['image'] = 'shovel.png',              ['unique'] = false,         ['useable'] = false,     ['shouldClose'] = true,      ['combinable'] = nil,   ['description'] = 'Legit shovel yes'},

For ox_inventory

ox_inventory\data\items.lua

	['trowel'] = {
		label = 'Trowel',
		weight = 500,
		decay = true,
		stack = false,
		close = false,
		description = 'Diggy Diggy Diggy?',
	},
	
	['shovel'] = {
		label = 'Shovel',
		weight = 1000,
		decay = true,
		stack = false,
		close = false,
		description = 'Diggy Diggy Diggy?',
	},
	
	['dirty_potato'] = {
		label = 'Dirty Potato',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Potato potato but dirty dirty?',
	},
	
	['potato'] = {
		label = 'Potato',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Potato potato?',
	},
	
	['dirty_cabbage'] = {
		label = 'Dirty Cabbage',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Cabby cabby but dirty dirty?',
	},
	
	['cabbage'] = {
		label = 'Cabbage',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Cabby cabby?',
	},
	
	['dirty_tomato'] = {
		label = 'Dirty Tomato',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'To-ma-to but dirty',
	},
	
	['tomato'] = {
		label = 'Tomato',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'To-ma-to',
	},
	
	['dirty_orange'] = {
		label = 'Dirty Orange',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'It talks!!!!',
	},
	
	['orange'] = {
		label = 'Orange',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'It talks!!!!',
	},
	
	['dirty_coffee_beans'] = {
		label = 'Dirty Coffee Beans',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Ohh wakey wakey but dirty',
	},
	
	['coffee_beans'] = {
		label = 'Coffee Beans',
		weight = 250,
		degrade = 7160,
		decay = true,
		stack = true,
		close = false,
		description = 'Ohh wakey wakey but dirty',
	},

Support & Suggestions

Contact me at my discord @ybarra. or join my Discord Server!
Discord Server

kloud-farmjob's People

Contributors

kloudzxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kloud-farmjob's Issues

CanCarryItem

Greetings. I get an error when I try to collect resources

[script:kloud-farmjob] SCRIPT ERROR: @kloud-farmjob/server.lua:8: attempt to call a nil value (global 'CanCarryItem')
[script:kloud-farmjob] > callbackResponse (@ox_lib/imports/callback/server.lua:60)
[script:kloud-farmjob] > handler (@ox_lib/imports/callback/server.lua:76)

ESX version 1.10.1

Issue #1 not resolved

I don't think you resolve issues by just closing them without any comment. I refer to issue #1
Have you made any changes and can I download the update or not?
Please comment and allow me a chance to agree that the issue is resolved before closing it again!

can i ask for help

SCRIPT ERROR: @kloud-farmjob/server.lua:8: attempt to call a nil value (global 'CanCarryItem')

Poly zone issue

Firstly, great work! Works 100%

Issue: 'orange2' (the one with the zone type set to 'poly') is not respecting the poly zone but rather seems to be also accepting the 'sphere' zone. You can see this because you can harvest the trees closest to the sprite, but you can't target the trees closest to the road (Grapeseed Avenue).
I can expand the sphere zone to include these trees, but I'm afraid the trees will start growing on the road.
Besides, if someone wants to create new zones, it'll be difficult to pur them next to each other with only the 'sphere' zone to define the borders.
Hoping you can solve the problem quickly!
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.