πŸ”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

  1. Install item images Copy everything from the _items folder into your VORP Inventory images directory:

vorp_inventory\html\img\items

These files are the icons used for the coop, chickens and related items (e.g., chicken_good.png, chicken_bad.png, rooster_good.png).

  1. Prepare translations Open config.lua and translate two areas:

  • Database items in createItems() β†’ set label (item name) and desc (item description). These values are inserted into VORP’s items table at server start.

  • UI texts in Config.Txt, and pick your UI language via Config.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, ...)
end
  • label β†’ inventory display name (e.g., "Chicken").

  • desc β†’ inventory tooltip/description (e.g., "Healthy chicken"). These fields are written into the VORP items table at startup.


🌍 UI Localization

Set the NUI language and translate the visible strings:

  • Config.NUILang selects the language used by the NUI (front-end).

  • Config.Txt holds the text displayed to players in the interface.


βœ… Quick Checklist

  • _items β†’ vorp_inventory\html\img\items copied.

  • createItems() labels/descriptions translated.

  • Config.NUILang set and Config.Txt translated.

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