CodeRender
  • Welcome To Code Render
  • Scripts
    • CR-DispatchMDT
      • Script Configuration
      • UI Configuration
      • Events and Custom Features
    • CR-Loading Screen Configuration
    • CR-CaravanJob
Powered by GitBook
On this page
  1. Scripts

CR-CaravanJob

The Caravan Job is a concept of a player running a business to sell a caravan with storage. Civilians can manage their items in that storage

Caravan Job Documentation

Table of Contents

  • Overview

  • Configuration

    • Main Settings

    • Direct Search

    • Vehicle Spawn

    • Targets

    • Storage Plans

    • Order Options

    • Sell Options

    • Job Configuration

    Overview

    The Caravan Job is a FiveM resource that allows players to operate a storage dealership business. This documentation outlines the configuration options available.

    Configuration

    Main Settings

    "Main": {
        "locals": "en",
        "isEsxVersionon1110": true,
        "FallbackJob": {
            "name": "unemployed",
            "grade": 0
        },
        "autoWeight_calc": false,
        "block_glovebox": true,
        "block_items": {
            "isEnabled": true,
            "items": {
                "water": true,
                "burger": true
            }
        }
    }
    • locals: Sets the default language (English supported).

    • isEsxVersionon1110: ESX version 1.11.0 compatibility. if you put false it will auto enable the off-duty management for older ESX version .

    • FallbackJob: Default job when a player is no longer employed (unemployed, grade 0).

    • autoWeight_calc: Toggle for auto weight calculation.

    • block_glovebox: Prevents glovebox access.

    • block_items: Restricts specific items.

    Direct Search

    "DirectSearch": {
        "JobAccess": {
            "isEnabled": true,
            "searchable_job": ["police"],
            "isSkillCheck": true
        },
        "AdminAccess": {
            "isEnabled": true,
            "groups": ["admin", "superadmin"]
        }
    }
    • Controls caravan access via job roles and admin permissions.

    Vehicle Spawn

    "VehicleSpawn": {
        "Debug": false,
        "Radius": 5.0,
        "Coords": {
            "x": 1778.04,
            "y": 3337.94,
            "z": 40.85,
            "heading": 300.32
        }
    }
    • Defines vehicle spawn location and conditions.

    Targets

    "Targets": {
        "BossMenu": { ... },
        "Cloakroom": { ... },
        "DutyMenu": { ... },
        "VehicleMenu": { ... },
        "VehicleAccess": { ... },
        "OrderMenu": { ... },
        "UpgradeMenu": { ... }
    }
    • Defines interaction points within the game world.

    Storage Plans

    "StoragePlans": [
        {
            "level": 1,
            "name": "bronze",
            "label": "Bronze",
            "slots": 15
        },
        {
            "level": 2,
            "name": "silver",
            "label": "Silver",
            "slots": 20
        },
        {
            "level": 3,
            "name": "gold",
            "label": "Gold",
            "slots": 35
        }
    ]
    • Defines storage upgrade tiers with level, name, label, and slots.

    Order Options

    "OrderOptions": {
        "CaravanOrder": {
            "orderMax": 5,
            "manufacture_Per_UnitPrice": 150000,
            "deliveryTime": 10,
            "animation_Per_Unit": 10
        },
        "StorageBoxOrder": {
            "orderMax": 50,
            "manufacture_Per_UnitPrice": 3000,
            "deliveryTime": 10,
            "animation_Per_Unit": 2
        }
    }
    • Controls caravan and storage box ordering parameters.

    Sell Options

    "SellOptions": {
        "CaravanPrice": 200000,
        "StorageBox": {
            "boxPrice": 5000,
            "boxWeight": 10
        },
        "selfPlayerAccess": true
    }
    • Sets pricing and access parameters for sales.

    • Self Player Access means they can self-purchase for them .

    Job Configuration

    "Job": {
        "name": "storage_dealer",
        "label": "Storage Dealer",
        "boss_grade": 2,
        "job_grades": [ ... ],
        "offDuty": { ... }
    }
    • Details job structure, including names, grades, salaries, and off-duty management.

UpdateCaravanStashes Command Usage

The updateCaravanStashes command is for admin use only, allowing them to update the storage box weight in SQL. If you enable autoWeight_calc in config.Main, it will automatically calculate and update weights when the server starts and the script is restarted.

PreviousCR-Loading Screen Configuration

Last updated 4 days ago