Skip to content

Farmer

Make sure to add the necessary items, item images and job names required for the job


πŸ”€ General Settings#

  • name: @string
    The job name that will appear in menus and notifications.
    Example: "Farmer"
  • debug: @boolean
    Enables debug mode for development and logs.
  • disabled: @boolean
    If true, disables the job, making it unavailable for players.

πŸ‘₯ Multiplayer Settings#

  • can_multiplayer: @boolean
    Indicates whether the job can be performed in a group.
    true: Group work enabled.
    false: Solo-only.
  • show_members_blips: @boolean
    If true, players will see their teammates' blips on the map.

πŸ“ Menu Settings#

lua
["menu"] = {
  ["job_menu"] = vec3(x, y, z),
  ["interaction_distance"] = float,
  ["blips"] = { ... }
}
  • job_menu: @vector3
    The location where the job menu can be accessed.
  • interaction_distance: @float
    Distance range required for the menu interaction.
  • blips:
    Settings for displaying the menu location on the map.
    • show: @boolean – Whether to display the blip.
    • label: @string – Name displayed on the map.
    • sprite: @number – Blip icon.
    • color: @number – Blip color.
    • scale: @float – Blip size.

🚜 Vehicle Settings#

lua
["car_settings"] = {
  ["model"] = "vehicle_model",
  ["spawnCoords"] = vec4(x, y, z, heading)
}
  • model: @string
    The name of the vehicle model to be spawned.
    Example: "tractor2"
  • spawnCoords: @vector4
    Coordinates and heading where the vehicle will appear.

🌾 Field/Mission List#

lua
["field_list"] = {
  [1] = {
    ...
  }
}

Each field defines a crop-related job/mission area.

Main Fields

  • area: @vector3
    The reference area for the mission (e.g., center of the farm field).
  • title: @string
    The title shown to the player when starting this field's mission.
  • reward: @number
    Amount of money awarded upon successful mission completion.
  • split_reward_members: @boolean
    If true, the reward is split evenly among group members.

🌾 Crop Models & Attachments#

lua
["models"] = {
  ["crop"] = "prop_model",
  ["collect"] = "prop_model",
  ["collect_car_attach"] = { ... },
  ["collect_player_attach"] = { ... },
}
  • crop: @string
    The model representing the crop growing in the field.
    Example: "prop_veg_crop_04"
  • collect: @string
    The model that appears once the crop is collected (e.g., hay bale).
  • collect_car_attach:
    Settings for attaching the collected object to the vehicle.
    • bone: @number – Bone index to attach to.
    • coords: @vector3 – Position offset.
    • rotation: @vector3 – Rotation offset.
  • collect_player_attach:
    Settings for attaching the collected item to the player.
    • bone: @number – Bone index for the player's hand or back.
    • coords: @vector3 – Offset relative to the bone.
    • rotation: @vector3 – Rotation for item alignment.
    • animDict: @string – Animation dictionary used while carrying.
    • animName: @string – Animation name used while carrying.

πŸš› Trailer / Harvester Settings#

lua
["trailers"] = {
  ["harvester"] = "tractor_model",
  ["harvester_coords"] = vec4(x, y, z, h),
  ["trailer"] = "trailer_model",
  ["trailer_coords"] = vec4(x, y, z, h),
}
  • harvester: @string
    Model name of the harvesting vehicle.
  • harvester_coords: @vector4
    Spawn position for the harvester.
  • trailer: @string
    Model name of the trailer used for crop delivery.
  • trailer_coords: @vector4
    Spawn position for the trailer.

⏱️ Timer Settings#

lua
["timer"] = {
  ["extra_time"] = number,
  ["mission_time"] = number,
  ["deducted_per_min"] = number,
}
  • extra_time: @number (in ms)
    Extra time granted after the mission ends before failure.
  • mission_time: @number (in ms)
    Total time given to complete the mission.
  • deducted_per_min: @number
    Money deducted per minute if the mission exceeds the allowed time.

πŸ“ Collection Points#

lua
["coords"] = {
  [1] = vec3(x, y, z),
  ...
}
  • coords: @vector3[]
    Positions in the field where the player can interact with or collect crops.

πŸ—ΊοΈ Field Blip#

lua
["area_blip"] = {
  ["show"] = true,
  ["label"] = "Field Name",
  ["sprite"] = 501,
  ["color"] = 32,
  ["scale"] = 0.8,
  ["alpha"] = 125,
}
  • show: @boolean – Whether to display the blip.
  • label: @string – Field name on the map.
  • sprite: @number – Blip icon.
  • color: @number – Blip color.
  • scale: @float – Blip size.
  • alpha: @number – Transparency value (0–255).