jimathy / jim-mechanicguide

Online Guide/Documentation of jim-mechanic
17 stars 8 forks source link

Mechanic Guide

Read this before opening a ticket. please GOD, read it.

Multi-Framework Support

My actual "live" support of this is very limited With the use of my free script jim_bridge the script is now able to be used fully on:

The ones we can personally help with are qb-core and qbx-core, the others are just compatability as of now Most likely es_extended will have many options that I don't know about, so don't expect anything special from it


Performance Items


Extra Damage Items

These can be repaired by a mechanic with mechanic tools item


Mechanic Items


Toolbox / Check_tunes.lua


Mechanic_Tools / repair.lua


Nitrous / nos.lua


police.lua / Emergency Repair Benches


preview.lua - /preview

To create a discord webhook follow the following steps:

Car Lifts

The script features built in synced carlift for your vehicles to be placed on

For example:

carLift = {
    { coords = vec4(-201.85, -1319.65, 31.3, 19.36), useMLOLift = true },
    { coords = vec4(-221.27, -1318.71, 31.3, 352.67), useMLOLift = true },
},

These locations make use of CarLifts already in place at Gabz Alta Street MLO, this is shown with the extra use = true or useMLOLift = true


Configuration

There is little snippets of information on each line for these, but this is a more detailed list of information

Config.Lan


System

Debug

Menu

Notify

ProgressBar

distkph


General

JimShops

showClockInTill

showBossMenuTill


Main

craftCam

MultiCraft

MultiCraftAmounts

showItemBox


Main

isVehicleOwned

ItemRequiresJob

JobLocationRequired

LocationBlips

CostmeticJob

JobRoles

Overrides

CosmeticItemRemoval

updateServerDelay

ChameleonPaints

DoorAnimations

disableNos

showItemBox

disablePreviewPlate

disableToolboxProp

saveOnExit

Crafting

craftCam

MultiCraft

MutliCraftAmounts

Harness

JobOnly

HarnessControl

seatbeltEasyLeave

harmessEasyLeave

progOn

progOff

seatbeltNotify

timeOn

crashKill

vehFailure

damages

repairKits

fixCommand

PreventRoll

CarLifts

Enable

Sound

CarLiftModelReplace

CarLiftUse

Repairs

FreeRepair

StashRepair

ExtraDamages

EffectLevels

Parts

Previews

hardCam

PreviewPhone

PreviewJob

PreviewLocation

PhoneMail

PhoneItems

StoreCraft

Crafting

StashCraft

Stores

Odometer

ShowOdo

OdoLocation

OdoShowIcons

OdoAlwaysShowIcons

ShowToAll

OdoIconsToShow

Emergency

requireDutyCheck

Jobs

LockEmergency

Locations

CosmeticsTable

PerformanceTable

ManualRepairs

ManualRepairCost

ManualRepairCostBased

ManualRepairBased

ManualRepairPercent

repairEngine

repairExtras

dutyMessage

repairAnimate

repairSpeed

antiLag

antiLagDis

maxAudio

NOS

JobOnly

NosRefillCharge

NosBoostPower

NitrousUseRate

NitrousCoolDown

CooldownConfirm

nosDamage

boostExplode

EnableFlame

FlameDis

skillcheck

explosiveFail

explosiveFailJob

HandlingChange

Discord

DiscordPreview

DiscordDefault

DiscordColour

Duct tape:

Config.DuctTape.DuctSimpleMode

Config.DuctTape.MaxDuctEngine

Config.DuctAmountEngine

Config.DuctTape.DuctTapeBody

Config.DuctTape.MaxDuctBody

Config.DuctAmountBody

Config.RemoveDuctTape


Locations.lua

Explanation of the locations and how to make one

Config.Locations[#Config.Locations+1] = {
    Enabled = true,
    job = "mechanic",
    zones = {
        vec2(-263.99075317382, -1349.6701660156),
        vec2(-263.5015258789, -1298.9702148438),
        vec2(-229.94024658204, -1299.089477539),
        vec2(-229.81985473632, -1291.589477539),
        vec2(-216.73846435546, -1288.9470214844),
        vec2(-193.63221740722, -1294.155883789),
        vec2(-174.24346923828, -1293.1431884766),
        vec2(-151.77659606934, -1300.6693115234),
        vec2(-151.88639831542, -1311.1921386718),
        vec2(-177.41833496094, -1311.566772461),
        vec2(-177.5919342041, -1351.1942138672)
    },
    autoClock = { enter = true, exit = true, },
    stash = {
        { coords = vec4(-226.48, -1316.17, 31.27, 0.0), w = 3.6, d = 0.8, },
    },
    store = {
        { coords = vec4(-228.64, -1314.19, 31.3, 90.0), w = 3.60, d = 0.8 },
    },
    crafting = {
        { coords = vec4(-214.82, -1339.74, 31.46, 90.0), w = 2.8, d = 1.5 },
    },
    clockin = {
        { coords = vec4(-195.55, -1316.46, 31.2, 181.72), prop = false },
    },
    manualRepair = {
        { coords = vec4(-200.28, -1311.62, 31.3, 0.0), prop = true, },
    },
    carLift = {
        { coords = vec4(-201.85, -1319.65, 31.3, 19.36), use = true },
        { coords = vec4(-221.27, -1318.71, 31.3, 352.67), use = true },
    },
    garage = {
        spawn = vec4(-182.74, -1317.61, 30.63, 357.23),
        out = vec4(-190.62, -1311.57, 31.3, 0.0),
        list = { "towtruck", "panto", "slamtruck", "cheburek", "utillitruck3" },
        prop = true
    },
    payments = {
        img = "https://static.wikia.nocookie.net/gtawiki/images/b/be/BennysOriginalMotorWorks-GTAO-Logo.png",
        { coords = vec4(-192.21, -1316.34, 31.10, 285.83), prop = true },
    },
    Restrictions = {
        Vehicle = { "Compacts", "Sedans", "SUVs", "Coupes", "Muscle", "Sports Classics", "Sports", "Super", "Motorcycles", "Off-road", "Industrial", "Utility", "Vans", "Cycles", "Service", "Emergency", "Commercial", },
        Allow = { "tools", "cosmetics", "repairs", "nos", "perform" },
    },
    blip = {
        coords = vec3(-211.55, -1324.55, 30.9),
        label = "Bennys Original Motorworks",
        color = 1,
        sprite = 446,
        disp = 6,
        scale = 0.7,
        cat = nil,
    },
    discord = {
        link = "",
        color = 16711680,
    }
}

Explanation of each part of the location snippet

Creating a new polyzone location:


recipes.lua

Crafting

Stores