[ESX] Helicopter Job [FREE]

Hey there!
I made a new resource for esx: a helicopter job. I based it off my previous resource calles esx_airplanejob. If you haven’t seen it, defenitely go check it out. Down here u’ll find the features and a preview.

FEATURES:

  • Out of 3 configurable locations a random one is generated where the player has to fly to drop off cargo
  • For each location the job pays differently (Configurable)
  • Player cannot exit plane during job, until helo is flewn back onto helipad
  • If the helo gets destroyed during the job, the player pays for it (Configurable)
  • Configurable time to load the helo with cargo
  • Nice little effects for the drop off. (Flare and Boat mark the spot, player actually drops cargo crate, banner notify that cargo was delivered successfully)
  • Relatively lightweight resource
  • Includes support for esx legacy
  • Perfect script for players to get money without afk farming
  • Open Source and free

Preview:

Direct Download:
esx_helicopterjob.zip (8.5 KB)

GitHub:

If you have any direct questions feel free to comment or message me (contact in config.lua)

Have a beautiful day!

6 Likes

nice work

1 Like

Sick man! A suggestion make it configurable so the person doing the job requires a pilots license, also make the notifications esx default as not everyone uses okok :smiley:

1 Like

Never mind, here replace lines 90 through 119 of client lua for license check.

 if IsControlJustReleased(1, 51) then
                            if not IsPositionOccupied(Config.Spawn, 8.0, 0, 1, 1, 0, 0, 0, 0) then
                                -- Check if player has helicopter pilot license
                                ESX.TriggerServerCallback('esx_license:checkLicense', function(hasLicense)
                                    if hasLicense then
                                        spawnVeh()
                                        startJob()
                                        Citizen.Wait(1000)
                                    else
                                        ESX.ShowNotification(_U('noLicense'))
                                    end
                                end, GetPlayerServerId(PlayerId()), 'helicopterpilot') --license name here
                            else
                                ESX.ShowNotification(_U('areaOccupied'), 3000)
                            end
                        end
                    else
                        ESX.ShowHelpNotification(_U('endJob'))
                        if IsControlJustReleased(1, 51) then
                            endJob()
                            --print("Job ended")
                            Citizen.Wait(500)
                        end
                    end
                end
            end
            Citizen.Wait(1)
        end
    end)
end
1 Like