🚚Tworst Transport Job

Transport Script Documentation

Region Information

  • Description: Contains general information about the region, such as the name and description.

Job Configuration

  • Description: Defines job configuration details, including applicable days, job type, and regional description.

Task Data

  • Description: Specifies the location data for specific tasks and blip settings.

Vehicle Data

  • Description: Includes the vehicles required for the job and their positions, with a separate configuration for vehicles like forklifts.

Escort Vehicle Configuration

  • Description: Defines the escort vehicle and the positions of its waiting points. If there are 3 or more players, the escort vehicle will appear in the center.

Transport and Delivery Points

  • Description: Specifies transport and delivery points, including trailer delivery coordinates and objects to be transported.

Spawn Configuration

  • Description: Details the main objects to be spawned during the job and the sequence of additional objects to be spawned.

Region Information

  • onlinejobextraawards:

    • This setting incentivizes players to complete jobs as a group. If there is only 1 player, they will receive 5,000 units of currency. However, if there are 2 players and onlinejobextraawards is set to 2, each player will earn 10,000 units, totaling 20,000 for the group. This setup encourages players to perform tasks collaboratively for higher rewards.

Task Data

  • jobName: Do not modify. This is the fixed name of the job.

  • jobCount: Specifies the maximum number of boxes. You can set this to a maximum of 7.

  • jobLabel: This is the name of the task displayed at the top-left of the screen.

  • coords: Coordinates where boxes will initially spawn in the port. The system will choose the first available (empty) coordinate.

  • jobBlip: The label of the job blip on the map, named "Load the Box" for this task.

Vehicle Data

  • regionJobVehicle: Defines the model of the vehicle to spawn and the coordinates where it can spawn. The system will select the first available coordinate.

  • escortVehicle: This vehicle appears only if there are 3 or more players in the group.

Transport and Delivery Points

  • trailerDeliveryCoords: The coordinates where the truck and trailer should be delivered after loading the boxes.

  • vehicleDeliveryCoords: The coordinates where the truck and trailer should be handed in at the end of the job.

  • boxDeliveryCoords: The location of the marker where players deliver the boxes they have picked up. This coordinate has a radius, and players must be within it to deliver the boxes.

  • forkliftCoordsDelivery: The coordinates where forklifts will appear at the delivery point.

Delivery Object Coordinates

  • deliveryObjectCoords: Coordinates where players will place the items retrieved from the boxes. It is recommended to have at least twice as many coordinates as there are boxes in the job, with a maximum of 14 coordinates for all object categories.

Spawn Object

  • spawnObject: Defines the items that appear randomly from the boxes. Objects with the same coordinate category and item category can be placed at matching coordinates.

Object Attachment Configuration

Config.AttachEntityCoords:

  • This configuration sets the specific holding positions for each item that can be found in boxes. Each item has its own bone, xPos, yPos, zPos, xRot, yRot, and zRot settings, defining how the object should be held by the player.

  • If a specific object is not found in the list, the default setting is applied, ensuring the item is held in a standard position.

Key Parameters:

  • bone: Specifies the bone attachment point on the player’s body for the object.

  • xPos, yPos, zPos: Define the position offset of the object relative to the player’s bone.

  • xRot, yRot, zRot: Set the rotation offset of the object to ensure it is oriented correctly when carried.

Each object (e.g., prop_chair_01a, v_res_m_armchair, etc.) has a unique configuration, allowing it to be carried realistically.

This setup provides customization for each item’s carrying style, enhancing immersion. If an object is not listed, the default holding position is used.

Last updated