FiveM scripts for Qbox servers
Scripts
Resources written for the Undead Convoy server, available to other Qbox servers through our Tebex store.
Base building
qbx_basebuilding
A persistent survivor-encampment resource. Players claim territory, place pieces freely, and keep storage that only the owner controls. It replaces a Rust-style modular system with free placement and server-checked saves.
Requires
Start these before qbx_basebuilding. They are standard Qbox and Ox resources, not included in the download:
qbx_coreox_liboxmysqlox_inventoryox_targetqbx_garages
convoy_prefab_builder is included in the download at no cost. It supplies the catalog of verified pieces and templates, and does not change admin-placed world objects.
Commands
/claim- Claim territory. A confirmation dialog checks the position, road status, restricted zones, separation from other claims, claim limit, and cost before the claim is saved.
/home- Owner only. Teleports you to a clear spot inside your claim after a 5 second progress bar. Moving or taking damage cancels it.
Gor/build- Open the menu for the nearest encampment.
/basemanager- Manage members.
/unclaim- Deletes the claim, all placements, storage contents, garage access points, and upgrades. There is no refund, and it asks you to confirm twice.
/baseadmin- Admin only. Edit the catalog and settings, inspect claims, teleport, and remove claims safely.
Placing pieces
- A flying placement camera with translucent ghost previews, rotation, height adjustment, optional ground snap, and clear valid or invalid feedback.
- Roads are blocked by default for singles, templates, edits, and garage access points.
- Template pieces are checked at their transformed child points too, so a rotated assembly cannot reach onto a road.
- Wood pieces snap to compatible anchors within 2.25 m. Mouse wheel turns in 15 degree steps. Enter places a piece and keeps the preview active for the next one. R flips a straight wall's facing side.
- Doors snap to the doorway frame's hinge anchors. Each door can be opened, closed, locked, or unlocked, and the state is saved on the server.
- Placing pieces needs the Building Hammer item, sold alongside the regular hammer at Gas Stations. The server checks that you still have it when each piece is saved.
- The Placed Objects manager lets authorized builders pack catalog objects remotely. Storage must be empty before a piece is removed.
Catalog
- Wood: modular floors, walls, doors, and roofs, with thumbnail previews, structural categories, and Shift plus wheel to cycle within a category.
- Metal: rectangular floors, foundations, walls, roofs, stairs, pillars, doors, and frames, with pipes and solar panels as free-placed decoration.
- Lighting: decorative lighting props, placed through the same flow.
- Entertainment: retro and flat-screen televisions with video playback through
ptelevision. Playback resets when the resource or server restarts. - Props: single decorative props from the prefab builder.
Metal costs are cash plus the metal item, for example a standard piece costs $200 and 15 metal. Admins can change the cost, display name, placement limit, and storage capacity of any entry.
Ownership, storage, and doors
- Membership roles do not automatically grant access. The owner decides who can use storage and doors.
- Storage is private by default. The owner can share each storage object individually.
- Doors are owner only by default. The owner can set member access and member lock control per door.
- Optional Qbox vehicle garage slots can be added to an encampment.
Optional farming module
A Farming page in /build with persistent planter crop slots, crop processing, local 3D status text, and an admin preview and configuration menu. It can be turned off in config.lua with Config.Farming.Enabled = false.
Install
- Start the required resources before
qbx_basebuilding, as listed above. - Install the resource. Its database migration only adds tables and is safe to run more than once. The resource also creates its tables when it starts.
- Check
config.lua, including the farming switch and the proximity and stream distances. - Restart the resource, then test
/claim,/build, and/home.
Data and saving
Claims, placed pieces, storage, door state, upgrades, and transactions are saved to the database. Older modular structures are kept but are not loaded as active pieces.
Free on Tebex. The package is listed as Basebuilding + Admin Map Builder [QBox]. The download is handled through the store.
Open the free download