Git Product home page Git Product logo

esx_g-farming's Introduction

cover

Dependencies

Preview's

ox inventory/data/item.lua

['tomato'] = {
	label = 'Tamato',
	weight = 70,
	client = {
		status = { hunger = 20000 },
		anim = 'eating',
		usetime = 2500,
		notification = 'You ate a delicious Tomato'
	},
},
['mango'] = {
	label = 'Mango',
	weight = 200,
	client = {
		status = { hunger = 50000 },
		anim = 'eating',
		usetime = 2500,
		notification = 'You ate a delicious Mango'
	},
},
['orange'] = {
	label = 'Orange',
	weight = 200,
	client = {
		status = { hunger = 50000 },
		anim = 'eating',
		usetime = 2500,
		notification = 'You ate a delicious Orange'
	},
},

['apple'] = {
	label = 'Apple',
	weight = 200,
	client = {
		status = { hunger = 50000 },
		anim = 'eating',
		usetime = 2500,
		notification = 'You ate a delicious Apple'
	},
},
['gauva'] = {
	label = 'Gauva',
	weight = 200,
	client = {
		status = { hunger = 50000 },
		anim = 'eating',
		usetime = 2500,
		notification = 'You ate a delicious Gauva'
	},
},


['orangejuice'] = {
	label = 'Orange Juice',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'You drinks a delicious Orange Juice'
	}
},
['mangojuice'] = {
	label = 'Mango Juice',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'You drinks a delicious Mango Juice'
	}
},
['applejuice'] = {
	label = 'Apple Juice',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'You drinks a delicious Apple Juice'
	}
},
['gauvajuice'] = {
	label = 'Gauva Juice',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_ld_flow_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'You drinks a delicious Gauva Juice'
	}
},


['applewine'] = {
	label = 'Apple Wine',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_amb_beer_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'Im Drunk'
	}
},

['orangewine'] = {
	label = 'Orange Wine',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_amb_beer_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'Im Drunk'
	}
},

['gauvawine'] = {
	label = 'Gauva Wine',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_amb_beer_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'Im Drunk'
	}
},
['mangowine'] = {
	label = 'Mango Wine',
	weight = 350,
	client = {
		status = { thirst = 200000 },
		anim = { dict = 'mp_player_intdrink', clip = 'loop_bottle' },
		prop = { model = `prop_amb_beer_bottle`, pos = vec3(0.01, 0.01, 0.06), rot = vec3(5.0, 5.0, -180.5) },
		usetime = 2500,
		notification = 'Im Drunk'
	}
},

['tomato_ketchup'] = {
	label = 'Tamato Ketchup',
	weight = 250,
},
['tomato_paste'] = {
	label = 'Tamato Paste',
	weight = 250,
},

ox_inventory/modules/ items/client.lua

Item('applewine', function(data, slot) -- causes drug effect
    ox_inventory:useItem(data, function(data)
        if data then
            local playerPed = PlayerPedId()
            SetTimecycleModifier("spectator5")
            SetPedMotionBlur(playerPed, true)
            SetPedIsDrunk(playerPed, true)


            --Efects
            local player = PlayerId()
            SetRunSprintMultiplierForPlayer(player, 0.5)
            Wait(20000)
            ResetPedMovementClipset(playerPed, 0)
            ClearTimecycleModifier()
            ResetScenarioTypesEnabled()
            SetRunSprintMultiplierForPlayer(player, 1.0)
        end
    end)
end)
Item('orangewine', function(data, slot) -- causes drug effect
    ox_inventory:useItem(data, function(data)
        if data then
            local playerPed = PlayerPedId()
            SetTimecycleModifier("spectator5")
            SetPedMotionBlur(playerPed, true)
            SetPedIsDrunk(playerPed, true)

            --Efects
            local player = PlayerId()
            SetRunSprintMultiplierForPlayer(player, 0.5)
        
            Wait(20000)
            ResetPedMovementClipset(playerPed, 0)
            ClearTimecycleModifier()
            ResetScenarioTypesEnabled()
            SetRunSprintMultiplierForPlayer(player, 1.0)
        end
    end)
end)
Item('gauvawine', function(data, slot) -- causes drug effect
    ox_inventory:useItem(data, function(data)
        if data then
            local playerPed = PlayerPedId()
            SetTimecycleModifier("spectator5")
            SetPedMotionBlur(playerPed, true)
            SetPedIsDrunk(playerPed, true)

            --Efects
            local player = PlayerId()
            SetRunSprintMultiplierForPlayer(player, 0.5)
        
            Wait(20000)
            ResetPedMovementClipset(playerPed, 0)
            ClearTimecycleModifier()
            ResetScenarioTypesEnabled()
            SetRunSprintMultiplierForPlayer(player, 1.0)
        end
    end)
end)

Item('mangowine', function(data, slot) -- causes drug effect
    ox_inventory:useItem(data, function(data)
        if data then
            local playerPed = PlayerPedId()
            SetTimecycleModifier("spectator5")
            SetPedMotionBlur(playerPed, true)
            SetPedIsDrunk(playerPed, true)

            --Efects
            local player = PlayerId()
            SetRunSprintMultiplierForPlayer(player, 0.5)
        
            Wait(20000)
            ResetPedMovementClipset(playerPed, 0)
            ClearTimecycleModifier()
            ResetScenarioTypesEnabled()
            SetRunSprintMultiplierForPlayer(player, 1.0)
        end
    end)
end)

Put Image (/ox iventory/web/images)

esx_g-farming's People

Contributors

gjayz avatar

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.