π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)
config.lua)timeEffect: Duration of effect (progressive)Heal/Stamina: Positive or negative values allowedhealOverpower/staminaOverpower: Overpower when horse stats are maxedobject: 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
HorseFoodtable.
Last updated