[Release] [ESX] UteKnark - Grow weed outdoors [Abandoned]

How to add a Pod to the script?

How you add a pot ?

1 Like

Very very aaaaawwwwwesome Script ! Thank You for that it gives so much more feeling like a real life growing :smiley: I tested it , change the times for complett growing up the plant to 1 Month and the plant was there where i have planted it. So very cool … But at least one question… My Problem is that "so we call it in German - I have a wooden board in front of my head ( Brett vorm Kopf ) :smiley: can i add one more item for the tend action? So I want to use Water and fertilizer or
secateurs … So how can i do it ? Has Someone an Idea for me ? :slight_smile: Greetings :slight_smile:

Object inserted by :insert does not fit in node at level 0

I’m confused by the meaning Since I have Planted on the island that dlc entered, but received the following error.

getting the following error when trying to plant on Cayo Perico Island

/lib/cropstate.lua:46: Object inserted by :insert does not fit in node at level 0

would that be possible in vrpex?

Same problem

how to add 2 items in 1 script. Because this script only functions 1 plant seed and 1 fruit
i try like this , but not working
Items = { – What items are used?

    Seed = 'biji_wortel', 

    Tend = nil,             -- Optional item to progress growth cycle

    Product = 'wortel', 

},

Items = { -- What items are used?

Seed =  'biji_anggur',

Tend = nil,             -- Optional item to progress growth cycle

Product =  'anggur',

},

is there a way to make it to where u can grow weed when its dark and when it rains?

How long does the weed take to grow?

Best script ever, i love it !!! :heart_eyes:

However I encountered a bug, not very blocking but I don’t know what it will be like when there are people.
indeed, when I “cultivate” my plants, other players receive this error:

I’m not very good English
I had a question for you
I want to add esx_uteknark to the server
But my server source is essentialmode
What should I do now?
Is it correct by changing resource.lua?
For example
resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’
description ‘ESX UteKnark by DemmyDemon’
dependencies {‘essentialmode’,‘mysql-async’}
shared_scripts {
@essentialmode/locale.lua’,
‘locales/*.lua’,
‘config.lua’,
‘lib/octree.lua’,
‘lib/growth.lua’,
‘lib/cropstate.lua’,
}
client_scripts {
‘lib/debug.lua’,
‘cl_uteknark.lua’,
}
server_scripts {
@mysql-async/lib/MySQL.lua’,
‘sv_uteknark.lua’,
}

is there any chance to put in Coke and other drugs?

is their away to make it where when you use the blunt it gives you body armor?

at stage 3 the plants dont grow i waited 1 hour and nothing happents

Same, I can only plant around the airport there (Cayo). With this script, I can’t find a restriction to the location, bounds, or node locals that limits coordinates, so it may be coming from GTA/R* (great). Demonen, have at it if you wish. Thanks, awesome script, can’t say that enough.

@xx_birdperson_xx possible fix
change line 137 on the “cropstate.lua” to read:

octree = pOctree(vector3(0,1500,0),vector3(15000,15000,2000)),

1 Like

^This works. I owe you a joint. Thanks :+1:

1 Like

Don’t know if you found it but this is available under esx_drugeffects, client lua, so for coke:

RegisterNetEvent('esx_drugeffects:onCoke')
... (a bunch of other stuff, then)
    AddArmourToPed(playerPed, 100)

see esx_drugeffects/main.lua at master · esx-community/esx_drugeffects · GitHub for examples

Also the server lua can do a bunch, here’s my workup to roll joints (add animations on the client lua):

ESX.RegisterUsableItem('Normal_Weed', function(source, item, count)
	local xPlayer = ESX.GetPlayerFromId(source)
	if xPlayer.getInventoryItem('grinder').count < 1 then 
		TriggerClientEvent('esx:showNotification', source, 'You need a grinder and papers to roll a joint')
	elseif xPlayer.getInventoryItem('grinder').count > 0 then 
		if xPlayer.getInventoryItem('Rolling_Papers').count < 1 then 
			TriggerClientEvent('esx:showNotification', source, 'You do not have any papers')
		elseif xPlayer.getInventoryItem('Rolling_Papers').count > 0 then 
			TriggerClientEvent('esx_drugeffects:Normal_Weed', source)
			xPlayer.removeInventoryItem('Normal_Weed', 1)
			xPlayer.removeInventoryItem('Rolling_Papers', 1)
			xPlayer.addInventoryItem('Normal_Joint', 5)
			TriggerClientEvent('esx:showNotification', source, 'Some normal joints were just rolled')
		end
	end
end)
1 Like

Maybe go into growth.lua and set time = 1 for all, just for testing, and undo any multipliers.
If the issue persists maybe dev can help