Simple Parachute system for Onset
-
Add the "Onset_Parachute" folder to your server packages
-
Edit your server_config.json and add "Onset_Parachute" in the packages section before the files who need it
"packages": [
"Onset_Parachute"
],
- On the files who needs to add weapons to player, initialize the Onset_Weapon_Pacth using this function
local Parachute = ImportPackage("Onset_Parachute")
After that you should be able to use the built-in functions
SetPlayerParachute(player, boolean)
SpawnParachute(x,y,z)
[ Simple commands ]
local Parachute = ImportPackage("Onset_Parachute") -- Import to your Server Script OnsetWeaponPatch
AddCommand("p-spawn", function(player)
local x,y,z = GetPlayerLocation(player)
Parachute.SpawnParachute(x,y,z)
end)
AddCommand("p", function(player)
Parachute.SetPlayerParachute(player, true)
end)
[ Edite CONFIG.lua file ]
-- Made with 🖤 By Philip-J.Fry --
DISABLE_COMMANDE = false -- Set to true for disabled command
/p-fly -- tp player to z 40000
/p -- add parachute to player
/p-spawn -- Spawn parachute
Join Origin Discord server now !
This project is licensed under the MIT License