Skip to content

Installation

Install Cuxial Chipeo step by step: dependencies, database, items, workshop job, convars and start order.

Follow the steps in order. The whole package is three resources: cuxial_chipeo_assets, cuxial_chipeo and, if you bought it, the map cuxial_chipeo_map (Vecinos Enfadados Car Audio).

Check the dependencies ​

Install and start these first:

  • OneSync enabled on the server
  • ox_lib
  • oxmysql
  • cuxial_bridge 2.19.1 or later, configured for your framework (Cuxial Bridge)
  • object_gizmo
  • ox_inventory, for the items
  • A target supported by Cuxial Bridge, for the options on speakers, cars and fixed installations

Copy the resources ​

Place cuxial_chipeo_assets and cuxial_chipeo in your resources folder (and cuxial_chipeo_map if you use the map). Keep the folder names: the items and the models are looked up by those names. The package ships the three inside a [cuxial_chipeo] folder; you can drop it into resources as it is.

Database ​

The tables are created on the first start. If your database user cannot create tables, import install/schema.sql before starting the resource.

install/schema.sql
sql
-- chipeo_installs, chipeo_vehicle_damage, chipeo_vehicle_usb, chipeo_playlists,
-- chipeo_eq_presets, cuxial_chipeo_mounts, cuxial_chipeo_settings, cuxial_chipeo_special,
-- cuxial_chipeo_fixed, cuxial_chipeo_lists, cuxial_chipeo_history,
-- cuxial_chipeo_shop_points, cuxial_chipeo_shop_items, cuxial_chipeo_shop_sales,
-- cuxial_chipeo_shop_orders, cuxial_chipeo_shop_order_lines, cuxial_chipeo_shop_invoices

When updating from an earlier version, the existing tables are migrated and the new ones are created on the first start.

Add the items ​

install/items_en.lua has every item ready for ox_inventory with English labels (install/items.lua has the same items with Spanish labels). Paste its entries, without the opening return { and the closing }, inside the table of ox_inventory/data/items.lua.

GroupItems
Head unitchipeo_radio (installs), chipeo_unmount (removes and gives the head unit back)
USB sticksusb_8, usb_16, usb_32, usb_64, usb_128 (the number is how many songs fit)
Repair materialschipeo_amp, chipeo_crossover, chipeo_cables, chipeo_battery
Speakerschipeo_sub10, chipeo_sub12, chipeo_sub15, chipeo_sub18, chipeo_mid8, chipeo_mid12, chipeo_tweeter, chipeo_horn
Setschipeo_tower_s/m/l, chipeo_box_s/m/l/xl, chipeo_gate_wall_s/m/l/xl, chipeo_roof_wall_s/m/l/xl, chipeo_cable_plug
Electricalchipeo_amp_s/m/l/xl, chipeo_battery_agm, chipeo_capacitor, chipeo_fuse_block, chipeo_fuse_block_l, chipeo_alternator_ho, chipeo_alternator_xl, chipeo_fuse
Portable speakerschipeo_medusa_s, chipeo_medusa_l, chipeo_medusa_pole (tripod)
  • Items that are used from the inventory carry client = { export = 'cuxial_chipeo.<item>' }. Keep that line.
  • USB sticks must not stack: each one keeps its own songs.
  • Pieces and electrical parts carry consume = 0 and their client export: using one puts the part in the player's hands. They are taken from the inventory only when the installation is confirmed, and given back when removed.
  • Images: copy install/images/*.webp into ox_inventory/web/images/ (replace any with the same name). There is one per item, at 256 px; install/images/src/ holds the same ones at 512 px as PNG.
  • Labels, weights and images are yours to change. Item names must match shared/config.lua and data/components.lua.

Updating from an earlier version: paste the entries of install/items_en.lua (or install/items.lua) again. Without consume = 0 and the client export, the pieces cannot be installed from the inventory.

Workshop job (optional) ​

The workshop business uses the job taller_chipeo with three grades (the last one is the boss). Cuxial Chipeo does not create it: paste it into your framework. Without it, the counter keeps working and the console shows a warning. Skip this step with shop.job.enabled = false.

Paste the entry of install/jobs/qbx_core.lua inside the table of qbx_core/shared/jobs.lua.

Paid invoices and counter sales in regular currencies go to the society account of shop.income.society (taller_chipeo). It must exist in your banking or society system; the console warns on start when it does not.

Convars (optional) ​

server.cfg
cfg
# YouTube Data API v3 key: duration and state of each video, Spotify links and playlist import
set chipeo_youtube_key "YOUR_KEY"

# Discord webhook for the logs (only with logs.enabled = true)
set cuxial_chipeo_webhook "YOUR_WEBHOOK_URL"

# Language: en or es
setr ox:locale "en"

Use set for the YouTube key and the webhook, never setr or sets. With set they stay on the server and never reach the players.

Without a YouTube key, YouTube and SoundCloud still play. Spotify links and playlist import need the key. How to get one: Troubleshooting.

Production settings ​

Open shared/config.lua and check:

  • debug = false. With true staff use the test commands without items or jobs.
  • admin.permission: the Cuxial Bridge permission of your staff ('admin' by default).
  • mechanic.jobs: the jobs that repair and mount pieces for others.
  • radio: stock radio in every eligible car; enabled = false so only cars with an installed head unit play music.
  • persist.unowned: 'memory' (default) or 'sql' for the equipment of cars without an owner (Configuration).
  • shop.job.enabled: false if you only want the counter, without workshop job.
  • library.allowedHosts: the domains accepted for direct links. It comes with common hosting services; empty it to accept any domain.
  • Prices and currencies of the workshop: set them in /chipeoadmin → Workshop (Staff panel).

Start order ​

server.cfg
cfg
ensure oxmysql
ensure ox_lib
# your framework
ensure ox_inventory
# your target
ensure cuxial_bridge
ensure object_gizmo

ensure cuxial_chipeo_assets
ensure cuxial_chipeo
ensure cuxial_chipeo_map   # optional

If you kept the whole [cuxial_chipeo] folder, ensure [cuxial_chipeo] after the dependencies is enough.

Check that it works ​

  1. Give yourself chipeo_radio, usb_8, chipeo_sub12 and chipeo_amp_s.
  2. Stand next to your car and use chipeo_radio. A progress bar runs and the head unit is installed.
  3. Get in and press F4. The tablet opens.
  4. Paste a direct link to an audio file and press play. Step out: the music is heard around the car.
  5. Use usb_8 inside the car and save the song to the stick from the library.
  6. Outside the car, type /tallerchipeo, pick the subwoofer and place it with the gizmo. Its cone moves with the bass. Staff place it directly; other players carry the part to the car first and choose Install.

If you are updating from an earlier version: replace cuxial_chipeo and cuxial_chipeo_assets (and cuxial_chipeo_map if you use it), keep Cuxial Bridge on 2.19.1 or later and carry your values over to the new shared/config.lua. Since 2.4 there are new blocks (radio, persist, feel.bassKnob, feel.kick, medusa.place, sound.drive), and buckets.enabled and mounts.wiring.enabled default to false.

Next: Features guide and Configuration.

© Cuxial