πChicken Coop
A lightweight chicken-coop system for RedM designed to work with VORP Inventory. This page walks you through first setup and translations.
β‘ First Start
Install item images Copy everything from the
_itemsfolder into your VORP Inventory images directory:
vorp_inventory\html\img\itemsThese files are the icons used for the coop, chickens and related items (e.g., chicken_good.png, chicken_bad.png, rooster_good.png).
Prepare translations Open
config.luaand translate two areas:
Database items in
createItems()β setlabel(item name) anddesc(item description). These values are inserted into VORPβsitemstable at server start.UI texts in
Config.Txt, and pick your UI language viaConfig.NUILang(supported: fr, en, de, it, es, pt).
Tip: Start/Restart the server to let
createItems()run and (re)inject the items into the database. (This follows from the script inserting items βwhen the server starts.β)
π§© Database Items (createItems)
In config.lua, edit createItems() so your item names/descriptions match your language:
function createItems()
exports.oxmysql:execute("INSERT INTO items (...)",
{"chicken_good","Chicken",5,1,"item_standard",0,1,"{}","Healthy chicken",1.0,0}
)
-- duplicate for other items (injured chicken, rooster, meat, coop, ...)
endlabelβ inventory display name (e.g.,"Chicken").descβ inventory tooltip/description (e.g.,"Healthy chicken"). These fields are written into the VORPitemstable at startup.
π UI Localization
Set the NUI language and translate the visible strings:
Config.NUILangselects the language used by the NUI (front-end).Config.Txtholds the text displayed to players in the interface.
β
Quick Checklist
_itemsβvorp_inventory\html\img\itemscopied.createItems()labels/descriptions translated.Config.NUILangset andConfig.Txttranslated.
Youβre ready to launch the script and see the coop items and UI in your chosen language.
Here is an excerpt from the config.lua file : (parts of the excerpt are hidden) :
Last updated