✈️Pilot Job

Step by step installation guide for ESX and QB, common issues & solutions, troubleshooting guide, code snippets, changelog.

Installation

Add xex_lootbox folder to your resources folder and start it.

Configuration

All the configuration can be done in the file config.lua and locales.lua.

Make sure to select your framework in the configuration file.

Owned Vehicles

Now you can choose whether to do the missions with your own vehicle, or by renting one that spawns from the menu. If you choose to use your own vehicles, you only have to adjust the point to launch the menu and go there with a helicopter or plane. License restrictions will not work for the momentwith this option.

Adding new passenger missions

When creating a new passenger mission, you must have at least 2 points. The point where we pick them up, and the point where we leave them.

Every time we want to pick up passengers at a point we must place this extract in its handler of the config.lua file:

 FreezeEntityPosition(vehicle, true)
 local passengersCoords = {x = -1294.65, y = -2704.533, z = 13.11 } -- Coords where passenges will spawn
 joinPassengers(vehicle, passengersCoords)

The next mandatory point will be the collection:

FreezeEntityPosition(vehicle, true)
leavePassengers(vehicle)

Now you can close the mission with a message, or concatenate several transports in a row:

Take more passengers:

DrawMissionText(L('wait_next_passengers'), 5000)
local passengersCoords = {x = 1769.87, y = 3298.48, z = 41.35}
joinPassengers(vehicle, passengersCoords)

Or end:

DrawMissionText(L('mission_complete'), 5000)
FreezeEntityPosition(vehicle, false)

Adding new rescue missions

The rescue missions are easier to configure, they follow the same procedure but we only need to mark the coordinates of the injured ped:

local injuredPedCoords = {x = -606.923, y =3582.472, z = 273.742 } 
joinInjuredPedPassenger(vehicle, injuredPedCoords)

And then drop it:

endTimer() -- End Mission timer
leavePassengersInjured(vehicle) 
DrawMissionText(L('patient_arrived'), 5000)

Here you can finish the mission, take it to another point to finish or customize it.

Using helicopter model from video

You should change rescue vehicle to 'uh1forest' on Config.VehicleModels.

Vehicle files: https://www.gta5-mods.com/vehicles/us-forest-service-uh-1h-add-on

Last updated