https://github.com/fribblet56/Onset-Parachute
Simple Parachute system for Onset
https://github.com/fribblet56/Onset-Parachute
Last synced: 7 days ago
JSON representation
Simple Parachute system for Onset
- Host: GitHub
- URL: https://github.com/fribblet56/Onset-Parachute
- Owner: fribblet56
- License: mit
- Created: 2020-05-30T11:51:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-30T12:24:05.000Z (almost 5 years ago)
- Last Synced: 2024-11-12T15:43:19.685Z (6 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-onset - Parachute - Simple parachute system. (Packages and Plugins / Libraries)
README
# Onset-Parachute
Simple Parachute system for Onset## How to install
- 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
```json
"packages": [
"Onset_Parachute"
],
```
- On the files who needs to add weapons to player, initialize the Onset_Weapon_Pacth using this function
```lua
local Parachute = ImportPackage("Onset_Parachute")
```
After that you should be able to use the built-in functions## Function
```lua
SetPlayerParachute(player, boolean)
SpawnParachute(x,y,z)
```## Exemple
[ Simple commands ]
```lua
local Parachute = ImportPackage("Onset_Parachute") -- Import to your Server Script OnsetWeaponPatchAddCommand("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)
```## Package Config
[ Edite CONFIG.lua file ]
```lua
-- Made with 🖤 By Philip-J.Fry --DISABLE_COMMANDE = false -- Set to true for disabled command
```
## Package Commands
```
/p-fly -- tp player to z 40000
/p -- add parachute to player
/p-spawn -- Spawn parachute
```## Discord
Join Origin [Discord](https://discord.gg/MDEwtKr) server now !## License
This project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License