[FREE] [ESX & QBCore] Milking a cow

Milking a cow

You can milk the cows if you have a bucket. You can pour homemade milk from the bucket into bottles.
Everything can be easily changed in the config.lua file.

  • Easy configuration
  • Spawned cow
  • Checking items
  • Skill Check
  • Usable item
  • Discord Webhook

Preview

Easy configuration

Install

  • Download the repository.
  • Add the azakit_cowmilking to your resources folder.
  • Add ensure azakit_cowmilking to your server.cfg.

OX Inventory Items

['bottle'] = {
	label = 'Bottle',
	weight = 20,
	stack = true,
	close = true,
	description = nil
},

['bucket'] = {
	label = 'Bucket',
	weight = 20,
	stack = true,
	close = true,
	description = nil
},

['bucketmilk'] = {
	label = 'Bucket Milk',
	weight = 520,
	stack = true,
	close = true,
	description = nil,
	client = {
		export = "azakit_cowmilking.useItem"
	}
},

['homemademilk'] = {
	label = 'Homemade milk',
	weight = 120,
	stack = true,
	close = true,
	description = nil
},

Requirements

  • ESX or QBCore
  • ox_lib
  • ox_target or qb-target

Download


Bug fix

  • The cows are already born one by one
  • You can pour milk from the bucket into the bottles one at a time

UPDATE - Jan 2025

  • In addition to ESX, the script now supports QBCore.
  • Alongside ox_target, the script now supports qb-target for interaction.
  • Fixed synchronization bugs related to cows.
  • The difficulty of the skill check can now be adjusted via the config file.
  • Added a process circle to the process of filling the milk from the bucket into the bottles.

You need help, join my Discord server
https://discord.com/invite/DmsF6DbCJ9

Code is accessible Yes
Subscription-based No
Lines (approximately) 600
Requirements ESX or QBCore, ox_lib, ox_target or qb-target
Support Yes

(For releases without code the not applicable fields can be written as N/A)

My other works:

[FREE] [ESX & QBCore] Collecting eggs from hens
[FREE] [ESX] Vehicle key and lock
[FREE] [ESX & QBCore] Moneywash with tickets, licenses, tax levels, transport
[FREE] [ESX] Sell item with delivery
[FREE] [STANDALONE] AutoMove
[FREE] [ESX] Scrap metal from old air conditioners
[FREE] [ESX] NPC for launching events

5 Likes

I think you might consider du remove your webhook.

I´ll try to see if I can make it work in qbx :smiley: :wink:


How to solve this error message

Hello. I changed the animation. Download the latest from github and try it out. If this also gives an error, add an animation/Emotes script to your server, eg: dpEmotes

nice work bro

1 Like


Hey, I have the problem but RPemotes are installed with the animation

Do you have the latest version of ox_lib and ox_target installed?
It doesn’t generate this error for me. I thinking what the problem could be.

Do you have the latest version of ox_lib and ox_target installed?

yes i have

Yes i have the newest version, but dosent work

Bug fix

  • The cows are already born one by one
  • You can pour milk from the bucket into the bottles one at a time

(The animation and ox_lib/ox_target errors don’t occur to me, so I haven’t been able to figure out what the problem might be for some people.)

Can this also be used without target?

No. It requires Ox_target.

nice script , did u have discord server ?

Sometimes we overlook the smallest details. You were just missing some {}

Replace line 91.

exports.ox_target:addLocalEntity(createdcow, {{
            label = _("start_milking"),
            name = 'milking',
            icon = 'fa-solid fa-eye',
            distance = 1.7,
           onSelect = function()
                         InteractMilking()
                    end
        }})```

can use for qb framework?

my cows start spawning two or three times? on the same points can you fix this maybe?


UPDATE

  • In addition to ESX, the script now supports QBCore.
  • Alongside ox_target, the script now supports qb-target for interaction.
  • Fixed synchronization bugs related to cows.
  • The difficulty of the skill check can now be adjusted via the config file.
  • Added a process circle to the process of filling the milk from the bucket into the bottles.