🐎Feeding Horse + Syringe

🟦 Client Side

  • Enable or disable the command and events in the config.

  • Edit command/event names as you wish.

Trigger feeding via event:

TriggerEvent("Botiv:giveFoodToHorse", [ID])
-- or
TriggerEvent("Botiv:giveFoodToHorse", [ITEM])

Trigger feeding via command:

/feedhorse [ID]      -- Feed with item by numeric ID
/feedhorse [ITEM]    -- Feed with item name

🟧 Server Side

You can use ready-to-go lines from config_server.lua for VORP/REDEM. Or, integrate like this:

VORP Example

local vorpInventory = exports.vorp_inventory:vorp_inventoryApi()

vorpInventory.RegisterUsableItem("syringe", function(data)
   TriggerClientEvent("Botiv:giveFoodToHorse", data.source, "syringe")
end)

RegisterServerEvent("botiv-FeedHorse:itemUsed")
AddEventHandler("botiv-FeedHorse:itemUsed", function(item, used)
   if used then
      vorpInventory.subItem(source, item, 1)
   end
end)

RedEM Example


βš™οΈ Configuration Example (config.lua)

  • timeEffect: Duration of effect (progressive)

  • Heal/Stamina: Positive or negative values allowed

  • healOverpower/staminaOverpower: Overpower when horse stats are maxed

  • object: For syringe animation, use "p_cs_syringe01x"

  • Item objects: see Mooshe RDR2 Models


πŸ“Œ Notes

  • You can freely modify command/event names to fit your server.

  • Feeding logic supports both item names and numeric IDs.

  • System handles progressive healing/stamina and can apply negative effects (poison).

  • Add or remove foods in the HorseFood table.

Last updated