tis-skydiving
tis-skydiving copied to clipboard
A FiveM script that introduces a skydiving instructor job to the QB-core framework
Documentation
tis-skydiving
A script that adds a skydiving instructor job. This adds a couple quality of life features for skydiving:
- A shop close to the airport accessible by the instructor
- Parachute
- Radio
- Skydiving Tracker
- This item adds people to the a map radar
- A way for the instructor to spawn a plane
- A skydiving session menu
- Add landing zones
- Remove landing zones
- A command for the instructor to put the plane on autopilot so they can skydive themselves
Skydiving sessions
The instructor can start a session using the menu. When a session is started, it will put a marker on the map of everyone that has the skydiving tracker in their inventory. On that spot there will be a circle of flares indicating the landing zone. As well as a vehicle to transport people back.
The landing zones need to be added by the skydiving instructor manually using the menu. These zones are saved in a database table.
Plans
- Point system for landing in the zone?
Dependencies
- qb-core
- qb-target
- MenuV
- oxmysql
-
LegacyFuel (Or alternatively you can use ps-fuel if you follow step 2 in their
README.md
)
Installation
- Download .zip file
- Open the .zip file
- Drop the folder
tis-skydiving-master
inside recourse folder - Rename
tis-skydiving-master
totis-skydiving
- Add the line
ensure tis-skydiving
in yourserver.cfg
- Add this to your
items.lua:QBShared.Items
:
['skytracker'] = {
['name'] = 'skytracker',
['label'] = 'Skydiving Tracker',
['weight'] = 500,
['type'] = 'item',
['image'] = 'fitbit.png',
['unique'] = true,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Gives skydiving team radar'
},
- Add this to your
jobs.lua:QBShared.Jobs
:
['skydive'] = {
label = 'Skydiving',
defaultDuty = true,
offDutyPay = false,
grades = {
['0'] = {
name = 'Instructor',
payment = 500
},
},
},
- Don't forget to run the
tis-skydiving.sql
on your database to add the required table(s). - Have fun!
License
tis-skydiving
Copyright (C) 2022 IllusionSquid
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
EXCLUDES:
-
server/radar.lua
-
client/radar.lua
In those files credits are properly made.