Koja Scripts
JOBS

Company

Defines the gardener company — its name, NPC, map blip, job requirement, parking spots, vehicles, and equipment offsets.

Company

File: shared/config.luaConfig.Company

Defines the gardener company — its name, NPC, map blip, job requirement, parking spots, vehicles, and equipment offsets.

Top-level fields

KeyTypeDescription
namestringCompany display name.
pedtableNPC (ped) configuration.
bliptableMap blip settings.
neededJobtableJob restriction settings.
parkingstableList of parking spot positions.
vehiclestableAvailable company vehicles.
vehicleEquipmentOffsetstableEquipment attachment offsets on the vehicle.

ped

KeyTypeDescription
coordsvec4World position and heading of the NPC.
modelstringPed model name.
animtableIdle animation (dict + name).

blip

KeyTypeDescription
spritenumberBlip sprite ID.
colornumberBlip color ID.
scalenumberBlip size on the map.
labelstringBlip label text.

neededJob

KeyTypeDescription
enabledbooleanWhether a specific job is required.
jobNamestringName of the required job (e.g. 'gardener').

parkings

An array of { coords = vec4(...) } entries. Each entry defines a parking spot where company vehicles can spawn.

vehicles

KeyTypeDescription
modelstringVehicle spawn model name.
labelstringDisplay name in the UI.

vehicleEquipmentOffsets

Defines the attachment position and rotation for each piece of equipment mounted on the vehicle.

KeyFieldsDescription
mowerx, y, z, rx, ry, rzManual push mower offset.
mower_tractorx, y, z, rx, ry, rzRide-on tractor offset (on the roof).
hedgex, y, z, rx, ry, rzHedge trimmer offset.
flowersx, y, z, rx, ry, rzFlower planting supplies offset.
wateringcanx, y, z, rx, ry, rzWatering can offset.
flowerpotx, y, z, rx, ry, rzFlower pot offset.

Example

shared/config.lua
Config.Company = {
    name = 'Los Santos Gardener',

    ped = {
        coords = vec4(583.8412, 137.9120, 99.4747, 160.2695),
        model  = 's_m_m_gardener_01',
        anim   = { dict = 'amb@world_human_clipboard@male@base', name = 'base' }
    },

    blip = {
        sprite = 477,
        color  = 5,
        scale  = 1.0,
        label  = 'Gardener Company',
    },

    neededJob = {
        enabled = true,
        jobName = 'gardener'
    },

    parkings = {
        { coords = vec4(601.58, 114.93, 92.90, 253.22) },
        -- more spots …
    },

    vehicles = {
        { model = 'burrito3', label = 'Burrito Van' }
    },

    vehicleEquipmentOffsets = {
        mower         = { x = 0.0,  y = -1.2, z = 0.15, rx = 0, ry = 0, rz = 0  },
        mower_tractor = { x = 0.0,  y = -0.5, z = 2.20, rx = 0, ry = 0, rz = 0  },
        hedge         = { x = -0.45, y = -1.0, z = 0.32, rx = 0, ry = 0, rz = 90 },
        -- etc.
    }
}
  • Database — File: shared/config.lua → Config.Database
  • Locale & Debug — Key Type Default Description ------- --------- ------- ------------------------------------------------------------------- Debug boolean true Enables debug mode.
  • Levels — Controls the leveling progression for the gardener job.
  • Missions — File: shared/config.lua → Config.Missions
  • Skills — Defines the entire skill tree displayed in the Upgrades panel.
  • Uniforms — File: shared/config.lua → Config.Uniforms
  • Configuration — back to the section overview