[Free] Wagon Maker Job Script

Showcase

Download link

Advanced Wagon Crafting, Parking, and Employee Management System for RedM

:sparkles: Key Features

:hammer_and_wrench: Professional Crafting System

  • Immersive UI: Vintage-styled crafting menu with dynamic recipe lists and material requirements.
  • Interactive 3D Preview: Before crafting, effectively “test drive” the look of the wagon.
    • Visual Customization: Change Tints and Liveries in real-time.
    • Rotation: Use Q / E keys to rotate the wagon and inspect it from all angles.
    • Networked: Other players can see what you are previewing!
  • Material Economy: Wagons require wood, iron, leather, and other resources, driving the server’s economy.

:parking: Advanced Parking & Insurance

  • Persistent Storage: Valid wagons are saved to the database and survive server restarts.
  • Ghost Wagon Protection: Use the “Force Return (Insurance)” button in the parking menu to retrieve wagons that have fallen under the map, been destroyed, or lost to OneSync issues. No admin intervention required!
  • Stash Integration: Every crafted wagon comes with its own unique stash (rsg-inventory / ox_inventory), accessible via Third Eye.

:briefcase: Employee Management (Boss Menu)

  • In-Game Hiring: Bosses can hire nearby players directly through the “Job Management” UI.
  • Roster Management: View all employees, their grades, and stats.
  • Promote/Fire: Manage your workforce with simple UI clicks.
  • Location-Based Jobs: Supports specific jobs per town (e.g., wagon_valentine vs wagon_blackwater).

:earth_africa: NPC-Based Zones

  • We have moved away from invisible markers. All interactions are handled via NPCs using ox_target.
    • Crafting NPC: The master craftsman who handles orders and previews.
    • Stable Master NPC: The yard manager who handles parking and storage.

:round_pushpin: Locations & Jobs

The resource is pre-configured with 7 Wagon Workshops, each with distinct job requirements:

Location Job Name Zone Type
Valentine wagon_valentine NPC
Rhodes wagon_rhodes NPC
Saint Denis wagon_saint NPC
Blackwater wagon_blackwater NPC
Strawberry wagon_strawberry NPC
Armadillo wagon_armadillo NPC
Tumbleweed wagon_tumbleweed NPC

Note: You can easily add more locations in config.lua by simply adding new NPC entries.


:package: Installation

  1. Dependencies:

    • rsg-core
    • ox_lib
    • ox_target (Required for interaction)
    • ox_inventory OR rsg-inventory
  2. Database Setup:

    • Import the provided SQL file sql/wagonmaker.sql.
    • It creates two tables:
      • wagonmaker_wagons: Stores player wagons, customization, and stash ID.
      • wagon_maker_employees: Stores job-specific employee data.
  3. Config:

    • Check config.lua to adjust prices, crafting times, or add new wagon models.
  4. Start:

    • Add ensure rsg-wagonmaker to your server.cfg.

:gear: Configuration Guide

1. Adding Wagons (Config.Wagons)

Add new recipes easily. The script handles the logic.

['cart01'] = {
    label = "Light Peasant Cart",
    description = "A simple cart for light transport.",
    category = "carts",
    craftTime = 30000, -- 30 seconds
    materials = {
        { item = "wood_log", amount = 8 },
        { item = "iron_parts", amount = 4 },
    },
    model = "cart01", -- The actual spawn code
    maxWeight = 150000, -- 150kg Stash
    slots = 60,
    -- Customization Options (if supported by model)
    customizations = {
        livery = { 0, 1, 2 },
        tint = { 0, 1, 3 }
    }
}

2. Setting Up Zones (Config.CraftingNPCs & Config.ParkingNPCs)

Instead of coordinates for markers, you now define NPCs.

Config.CraftingNPCs = {
    {
        model = "s_m_m_valdealer_01", -- The Ped Model
        coords = vector4(-242.42, 696.51, 113.46, 226.5), -- Location
        previewPoint = vector4(-238.21, 701.32, 113.52, 90.0), -- Where the preview wagon appears
        requiredJob = "wagon_valentine" -- Job restriction
    }
}

3. Tuning

  • Config.UseOxTarget = true: Keep this enabled for best performance and interaction.
  • Config.Keybindings: If target is disabled, configure fallback keys here.

:video_game: Player Guide

How to Craft & Preview

  1. Approach the Crafting NPC (usually inside the workshop).
  2. Alt-Click (Third Eye) and select “Craft Wagon”.
  3. Choose a wagon model.
  4. Preview It:
    • Use Q / E to rotate the wagon.
    • Use the menu to try different Liveries and Colors.
  5. Craft: Be sure you have the materials!
    • Once crafted, the wagon is sent to the Stable Master.

How to Park & Retrieve

  1. Go to the Stable Master NPC (usually outside at the hitching post).
  2. Alt-Click and select “Access Wagon Yard”.
  3. Spawn: Click your wagon to bring it out.
  4. Store: Drive near the NPC and select “Store Wagon” via Third Eye or the menu.
  5. Lost Wagon?: If your wagon is destroyed or lost, open the menu and click “Force Return (Insurance)” to reclaim it instantly.

Employee Management (Bosses)

  1. Open the Crafting Menu.
  2. Click the “Job Management” tab.
  3. Hire: Select a nearby player to employ them.
  4. Manage: Promote, Demote, or Fire off-duty employees from the roster.

This script is currently in BETA .

If you encounter any bugs or issues, please open an issue on GitHub.
You can also contact me directly on Discord: whysorude0088

:coffee: Enjoying the script?

You can support my work by sponsoring me on GitHub.
Stay tuned for more free scripts and updates.

Code is accessible Yes
Subscription-based No
Requirements & dependencies rsg-core
Support No
3 Likes

love the script im almost done converting it to vorp for all those vorp lovers out there. just need to fix the tints and liveries and it will be good to go! *update did get the colors to work now just fixing up the job functions and I will send it out to github for everyone.

2 Likes

Howdy ! Going to be posting the work here soon on cfx I included you as the orginal author as it is originally your script I just made it work for vorp core. It works identical except for it uses prompts instead of ox target and fully integrates into the framework.

1 Like

Appreciate your contribution. All my scripts are open-source and free to use as needed.

1 Like

Thank you heres the youtube link showing it in action ! Just need to remove the markers from debug back to npcs and it should be good to go. https://youtu.be/MM6uJaCUUoI The stash for the wagon is a bit wonky i just realized in the vid will have to fix that!

1 Like

Much love for the support :raised_hands:
I’m cooking up another free script — Bank & Store Robbery system for RedM.
Sneak peek here: Youtube

1 Like

Hey me again I was testing the wagon script more as i was fixing some things and did you mean to set it so you can use any of the wagon yards once you own a wagon? or was it indeed meant orginally to be locked to that specific yard?