[Paid] [RedEM:RP & VORP & QBR & RSG] Happy Cow

RedM Script - Happy Cow - RedEM:RP & VORP & QBR/QR & RSG Script (Can be convert in any framework)

verification.lua and client.lua sont verrouillés dans la resource par CFX ESCROW verification.lua and client.lua are locked in the resource BY CFX ESCROW

RedM Happy Cow est un script passionnant qui vous permet de profiter de l’expérience immersive de traire des vaches avec des animations réalistes et des mini-jeux associés. Plongez-vous dans le rôle d’un fermier et maîtrisez l’art de la traite des vaches dans votre serveur. Ce script offre une multitude de fonctionnalités personnalisables pour créer une expérience unique pour vos joueurs.

Happy Cow is an exciting script that allows you to enjoy the immersive experience of milking cows with realistic animations and associated mini-games. Immerse yourself in the role of a farmer and master the art of milking cows in your server. This script offers a multitude of customizable features to create a unique experience for your players.

Traite réaliste des vaches | Realistic Cow Milking

Vous trayez des vaches en utilisant des animations réalistes, offrant une expérience immersive et captivante. Les animations fluides donneront l’impression aux joueurs d’être réellement dans une ferme.

You milk cows using realistic animations, providing an immersive and captivating experience. The smooth animations will make players feel like they are truly on a farm.

Emplacements personnalisables | Customizable Locations

Vous pouvez définir les emplacements des vaches sur la carte, permettant aux joueurs de choisir où placer les seaux vides, les tabourets et seaux pour traire les vaches et les où déposer les seaux pleins après la traite. Cela ajoute de la flexibilité et permet d’adapter le gameplay en fonction des besoins de votre serveur.

You can define the locations of cows on the map, allowing players to choose where to place empty buckets, stools and buckets for milking cows and where to deposit full buckets after milking. This adds flexibility and allows gameplay to be tailored to the specific needs of your server.

Cooldown de traite | Milking Cooldown

Chaque vache peut être configurée avec un cooldown personnalisé, déterminant le temps nécessaire avant qu’elle puisse être traite à nouveau. Cela ajoute une dimension stratégique, obligeant les joueurs à planifier leurs activités de traite de vaches. Each cow can be configured with a custom cooldown, determining the time required before it can be milked again. This adds a strategic element, requiring players to plan their cow milking activities.

Accès restreint au job de traite | Restricted Access to Milking Job

Si vous le souhaitez, vous pouvez limiter l’accès à la traite des vaches à un ou des jobs spécifiques. Cela permet de créer des rôles spécialisés dans votre serveur, ajoutant de la diversité et de l’immersion à votre gameplay.

If desired, you can limit access to milking cows to a specific job or more. This allows for specialized roles in your server, adding diversity and immersion to your gameplay.

Blips personnalisables | Customizable Blips

Vous avez la possibilité de placer des blips sur la carte pour marquer les emplacements des vaches, des seaux vides et des seaux pleins. Vous pouvez personnaliser l’emplacement, le style et la couleur de chaque blip, offrant une expérience visuelle attrayante et intuitive pour les joueurs.

You have the option to place blips on the map to mark the locations of cows, empty buckets, and full buckets. You can customize the location, style, and color of each blip, providing an attractive and intuitive visual experience for players.

Récompenses de traite | Milking Rewards

Lorsque les joueurs déposent un seau plein après la traite, ils sont récompensés par des bouteilles de lait. Le montant de la récompense est aléatoire et peut être facilement ajusté dans le fichier server.lua. De plus, vous pouvez modifier l’item obtenu en fonction de vos besoins et des mécanismes économiques de votre serveur.

When players deposit a full bucket after milking, they are rewarded with milk bottles. The amount of the reward is random and can be easily adjusted in the server.lua file. Additionally, you can modify the obtained item based on your specific needs and server economy mechanics.

Personnalisation étendue | Extensive Customization

Il y a une multitude d’options de personnalisation pour répondre à vos besoins spécifiques. Vous pouvez traduire toutes les parties du script, modifier les touches des prompts pour correspondre à votre configuration préférée, et même personnaliser les textures des notifications pour une expérience encore plus immersive.

Happy Cow offers a multitude of customization options to cater to your specific requirements. You can translate all parts of the script, modify prompt keys to match your preferred configuration, and even customize notification textures for an even more immersive experience.


Features

  • Traite de vaches.
  • Mini-jeu associé.
  • Gestion des emplacements.
  • Cooldown personnalisé.
  • Accès au job spécifique.
  • Blips sur la carte.
  • Récompenses aléatoires.
  • Personnalisation avancée.

  • Cow Milking.
  • Associated Mini-Game.
  • Location Management.
  • Custom Cooldown.
  • Job-Specific Access.
  • Map Blips.
  • Random Rewards.
  • Advanced Customization.

Dépendances | Dependencies

Aucune | None

Comment installer | How to Install

1 - Assurez-vous que le serveur est connecté au compte keymaster ayant accès au package
2 - Placez happy_cow dans server-data/resources/
3 - Dans server.cfg, ajoutez “happy_cow” après les dépendances
4 - Ajoutez l’objet à l’inventaire
5 - Modifiez le framework et les configurations si nécessaire
6 - Démarrez le serveur

1 - Make sure the server is connected to the keymaster account which has the package access
2 - Put happy_cow into server-data/resources/
3 - In server.cfg add “happy_cow” after dependencies
4 - Add Item to Inventory
5 - Change the framework, and configs if required
6 - Start the server

Fichiers verrouillés | Locked Files

client.lua, verification.lua sont verrouillés dans la ressource par CFX ESCROW config.lua, server.lua and npc.lua sont des fichiers accessible
client.lua, verification.lua are locked in the resource BY CFX ESCROW config.lua, server.lua and npc.lua are opened files

Achat Tebex | Tebex Purchase https://redm-script-fr.tebex.io/package/5702783

Video Happy's Scripts : Cow - YouTube

Config :

-------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------Config-------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------

--[[(FR) Vous pouvez paramétrer ici le script en focntion de vos besoins.]]
--[[(EN) Here you can configure the script according to your needs.]]

--<<----------------------------------------------------------------------------------------------------------------------------------------------------->>--
-- (FR) Ne pas modifier
-- (EN) Don't modified

Config = {}

--<<-------------------------------------------------------------------FRAMEWORK------------------------------------------------------------------------->>--
-- (FR) Modifier en fonction de votre framework "redemrp", "vorp", "qbr", "qbr2", "rsg" ou "redemrp-reboot"
-- (EN) Modify according to your framework "redemrp" or "vorp" or "qbr" or "qbr2", "rsg" or "redemrp-reboot"

Config.Framework = "redemrp-reboot" 

--<<---------------------------------------------------------------------JOBS---------------------------------------------------------------------------->>--
-- (FR) Si vous souhaitez que la traite de de vaches soit réservé à certains jobs spécifiques Config.jobs = {"job1", "job2"} ou non Config.jobs = false
-- (EN) If you want the milking of cows to be reserved for certain specific jobs Config.jobs = {"job1", "job2"} or not Config.jobs = false

Config.jobs = {"ranch"} -- false

--<<---------------------------------------------------------------------ITEM---------------------------------------------------------------------------->>--
-- (FR) Modifier en fonction de votre item lait dans votre bdd
-- (EN) Modify according to your milk item in your database

Config.milk = "milk"

--> REDEM:RP INVENTORY 2.0 <--  ["milk"] = { label = "Lait", description = "Les produits laitiers sont nos amis pour la vie", weight = 0.2, canBeDropped = true, canBeUsed = true, requireLvl = 0, limit = 1000, imgsrc = "items/milk.png", type = "item_standard",},
--> QBR CORE <-- ['milk'] = {['name'] = 'milk', ['label'] = 'Lait', ['weight'] = 1, ['type'] = 'item', ['image'] = 'items/milk.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['level'] = 0, ['description'] = 'Les produits laitiers sont nos amis pour la vie'},
--> VORP <-- INSERT INTO `items`(`item`, `label`, `limit`, `can_remove`, `type`, `usable`) VALUES ('milk', 'Lait', 50, 1, 'item_standard', 0) ON DUPLICATE KEY UPDATE `limit` = 50;

--<<--------------------------------------------------------------------COOLDOWN------------------------------------------------------------------------->>--
-- (FR) Modifier si vous voulez un cooldown entre les traites de chaque vaches
-- (EN) Modify if you want a cooldown between the milkings of each cow

Config.Cooldown = true -- false

--<<----------------------------------------------------------------------NPC---------------------------------------------------------------------------->>--
-- (FR) Placer les vaches au coordonnées souhaitées x,y,z et définissez leurs un scénario 1 = Calme, 2 = Boire dans l'abreuvoir et 3 = Manger du foin
-- (EN) Place the cows at the desired coordinates x,y,z and define their scenario 1 = Calm, 2 = Drink in the trough and 3 = Eat hay

Config.Cows = {
  {Hash = "A_C_Cow", x = 1379.8359375, y = 358.7559814453125, z = 87.78886413574219, h = 97.27849578857422, scenario = 1},
  {Hash = "A_C_Cow", x = 1389.6700439453125, y = 360.0400085449219, z = 88.02, h = 193.481, scenario = 2},
  {Hash = "A_C_Cow", x = 1396.450927734375, y = 362.91302490234375, z = 88.03717803955078, h = 132.40635681152344, scenario = 3}
  --{Hash = "A_C_Cow", x = x, y = x, z = x, h = x, scenario = x} -- (FR) Ajoutez en autant que vous souhaitez | (EN) Add as many as you want
}

--<<----------------------------------------------------------------OBJECTS & ACTION--------------------------------------------------------------------->>--

-- (FR) id = L'ID de votre chaise en fonction de votre vache, milkCooldown = Cooldown avant la prochaine traite en secondes, Hash = l'item pour sur lequel s'assoir, xyzh = Placement de l'item mais également ou le ped effectura la traite, Hash2 = l'item seau sous la vache à traire, x2y2z2 = Emplacement du seau
-- (EN) id = The ID of your chair according to your cow, milkCooldown = Cooldown before the next milking in seconds, Hash = the item to sit on, xyzh = Placement of the item but also where the ped will milk, Hash2 = the bucket item under the cow to be milked, x2y2z2 = Location of the bucket

Config.Seat = {
  {id = 1, milkCooldown = 86400, Hash = "p_stool12x", x = 1380.5899658203125, y = 357.9700012207031, z = 87.91, h = 3.0000002384186, Hash2 = "s_bucketmilk01x", x2 = 1380.23, y2 = 358.70, z2 = 87.09},
  {id = 2, milkCooldown = 86400, Hash = "p_stool12x", x = 1390.3900146484375, y = 360.79000854492, z = 88.41999816894531, h = 98.99999237060547, Hash2 = "s_bucketmilk01x", x2 = 1389.51, y2 = 360.40, z2 = 87.54},
  {id = 3, milkCooldown = 86400, Hash = "p_stool12x", x = 1397.3900146484375, y = 362.5899963378906, z = 88.38999938964844, h = 39.99999237060547, Hash2 = "s_bucketmilk01x", x2 = 1396.82, y2 = 363.13, z2 = 86.97},
  --{id = 4, lastMilkTime = 0, milkCooldown = x, Hash = "p_stool12x", x = x, y = x, z = x, h = x, Hash2 = "s_bucketmilk01x", x2 = x, y2 = x, z2 = x}, -- (FR) Ajoutez en autant que vous souhaitez | (EN) Add as many as you want
}

--<<-----------------------------------------------------------------BLIPS POSITION---------------------------------------------------------------------->>--
-- (FR) Endroit ou le joueur prend un seau
-- (EN) Place where the player takes a bucket
Config.SeauBlips = {
  {x = 1374.3502197265625, y = 356.50042724609375, z = 87.7959976196289}
}

-- (FR) Endroit ou le joueur pose un seau remplit et ou il reçoit la récompense
-- (EN) Place where the player put down a filled bucket and receives the reward
Config.LaitBlips = {
  {x = 1418.14013671875, y = 270.54443359375, z = 89.55043029785156}
}

--<<--------------------------------------------------------------------MARKERS-------------------------------------------------------------------------->>--
-- (FR) Activer ou non l'aparition de markers rouge sur les lieux d'actions Config.LaitMarker = LaitBlips, Config.SeauMarker = SeauBlips, Config.VacheMarker = Seat
-- (EN) Activate or not the appearance of red markers on the places of actions Config.LaitMarker = LaitBlips, Config.SeauMarker = SeauBlips, Config.VacheMarker = Seat

Config.LaitMarker = true -- false
Config.SeauMarker = true -- false
Config.VacheMarker = true -- false

--<<--------------------------------------------------------------------BLIPS MAP------------------------------------------------------------------------>>--
-- (FR) Configurer si vous souhaitez voir sur le map le blips, son nom, son sprite et sa couleur
-- (EN) Configure if you want to see on the map the blips, its name, its sprite and its color 

                                              -- (FR) Le blips pour la récompense | (EN) Blips for reward --
Config.LaitBlip = true -- false
Config.Laitname = "Seau de lait"
Config.Laitsprite = "blip_moonshine_vat" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/textures/blips/README.md
Config.Laitcolor = "BLIP_MODIFIER_MP_COLOR_4" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/blip_modifiers/README.md

                                                  -- (FR) Le blips pour le seau | (EN) Blips for bucket --
Config.SeauBlip = true -- false
Config.Seauname = "Seau vide"
Config.Seausprite = "blip_moonshine_vat" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/textures/blips/README.md
Config.Seaucolor = "BLIP_MODIFIER_MP_COLOR_4" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/blip_modifiers/README.md

                                                    -- (FR) Les blips des vaches | (EN) Blips for cows --
Config.VacheBlip = true -- false
Config.Vachename = "Vache"
Config.Vachesprite = "blip_predator" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/textures/blips/README.md
Config.Vachecolor = "BLIP_MODIFIER_MP_COLOR_4" -- https://github.com/abdulkadiraktas/rdr3_discoveries/blob/master/useful_info_from_rpfs/blip_modifiers/README.md

--<<---------------------------------------------------------------------PROMPTS------------------------------------------------------------------------->>--
-- (FR) Configurez ici les labels des prompts, leurs textes, et leurs touches associées
-- (EN) Configure here the labels of the prompts, their texts, and their associated keys

                                                              -- (FR) Label | (EN) Label --

Config.label = "Vache" -- (FR) Label pour effectuer la traite | (EN) Label for milking
Config.label2 = "Traite" -- (FR) Label mini jeu de traite | (EN) Label milking mini game
Config.label3 = "Seau" -- (FR) Label prendre et poser un seau | (EN) Label take and put down a bucket

                                                               -- (FR) Texte | (EN) Text --

Config.Dolabel = "Traire" -- (FR) Texte pour effectuer la traite | (EN) Text for milking
Config.Stoplabel = "Arrêter" -- (FR) Texte pour arrêter la traite | (EN) Text for stop milking
Config.Leftlabel = "Gauche" -- (FR) Texte pour mini jeu coté gauche | (EN) Text milking mini game left side
Config.Rightlabel = "Droite" -- (FR) Texte pour mini jeu coté droit | (EN) Text milking mini game right side
Config.BlipsSeau = "Prendre" -- (FR) Label prendre un seau | (EN) Label take a bucket
Config.BlipsLait = "Poser" -- (FR) Label poser un seau | (EN) Label put down a bucket

                                                              -- (FR) Touches | (EN) Keys --

-- https://github.com/abdulkadiraktas/rdr3_discoveries/tree/master/Controls
Config.Do = 0x27D1C284 -- (FR) Touche pour effectuer une action, traire, prendre un seau, poser un seau [R] | (EN) Key to perform an action, milk, take a bucket, put a bucket [R]
Config.Stop = 0x156F7119 -- (FR) Touche pour arrêter une action, arrêter la traite, supprimer le seau en main [ECHAP OU EFFACER] | (EN) Key to stop an action, stop milking, delete the bucket in hand [ESCAPE OR BACKSPACE]
Config.Left = 0x07B8BEAF -- (FR) Touche pour le mini jeu de traite coté gauche [CLIC DROIT] | (EN) Key for the milking mini game left side [RIGHT CLICK]
Config.Right = 0xC13A6564 -- (FR) Touche pour le mini jeu de traite coté droit [CLIC GAUCHE] | (EN) Key for the milking mini game right side [LEFT CLICK]

--<<------------------------------------------------------------------NOTIFICATIONS---------------------------------------------------------------------->>--
-- (FR) Configurez ici le texte et textures de vos notifications
-- (EN) Configure the text and textures of your notifications here

                                                              -- (FR) Texte | (EN) Text --

Config.Texts = {
  Milk = "Traite de vache", -- (FR) Titre de la notification | (EN) Title of the notification
  NonJob = "Tu n'as pas le métier requis", -- (FR) Pas le job requis pour l'action | (EN) Not the job required for the action
  Lait = "Vous avez eu ", -- (FR) Texte 1 de récompense | (EN) Reward Text 1
  Lait2 = " bouteille de lait", -- (FR) Texte 2 de récompense | (EN) Reward Text 2
  Time = "La vache à été traite récemment" -- (FR) Impossible d'effectuer la traite à cause du cooldown | (EN) Unable to perform milking due to cooldown
}

                                                           -- (FR) Textures | (EN) Textures --

-- https://github.com/abdulkadiraktas/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures                                                           
Config.Textures = {
  cow = {"satchel_textures", "animal_cow"}, -- (FR) Toutes les notifications | (EN) All notifications
  alert = {"toast_fme", "fme_role_protect_legendary_animal"}, -- (FR) Pas le job requis pour l'action | (EN) Not the job required for the action
}

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------

Code is accessible Partially
Subscription-based No
Lines (approximately) 988
Requirements None
Support Yes

Looks nice but it’s a pity that only I can milk a cow and there is no other activity. Would be awesome is there some activity around cow - feeding etc. Also would be good if there also was a cow manure to collect.

Yes, these are things that could bring more to the script, however I really wanted just to look into the milking thing, maybe one day if I have time I will add such features :grin:

Hi, can you make bucket droppable? I can’t even draw a gun :wink:

Hi there !
I’ll check if I can do it, but that seen hard to do, so no promeses. And I think isn’t very RP to draw a gun with a bucket full of milk ahah. (You can draw a gun if you have press delete or echap key, but your bucket will be lost :wink: )

Well, If someone going to beat you and you can’t do it anything 'cause you have bucket in hand, it’s so strange

What will be next? We have cows, sheep…

Just press delete key or echap, and your problem is solve, I’ll check to add a condition if you are in combat if you want to. And if you have a ragdoll script or if your character falls, you’ll see that it drop the bucket

I think I don’t have much more farm animal to create animations with, I’m working on severals things, camera, health, props, snake venoms… But feel free to give me ideas that you wish to see in scripts :grin:

What about chickens?

Oh yeah great idea, I wanted to make one were the player feeds the chicken and have a certain amoung of eggs, it could be my next work :wink:

Yeah, I would buy it for sure!

Great job! Script looks awesome.

6 Likes

Fix no more spamming in the console when your script is not up to date !