-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: spawn selector only * refactor: organization and standardized config * fix(client): function namings * fix: callback name * refactor(client): style * fix(client): map not loading --------- Co-authored-by: ChatDisabled <[email protected]> Co-authored-by: Matthew <[email protected]>
- Loading branch information
1 parent
3099005
commit 71cf046
Showing
12 changed files
with
195 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
# qb-spawn | ||
Spawn Selector for QB-Core Framework :eagle: | ||
### todo | ||
|
||
## Dependencies | ||
- [qb-core](https://github.com/qbcore-framework/qb-core) | ||
- [qb-houses](https://github.com/qbcore-framework/qb-houses) - Lets player select the house | ||
- [qb-apartment](https://github.com/qbcore-framework/qb-apartment) - Lets player select the apartment | ||
- [qb-garages](https://github.com/qbcore-framework/qb-garages) - For house garages | ||
|
||
## Screenshots | ||
![Spawn selector](https://cdn.izmystic.dev/images/5fwgqtzm.jpg) | ||
|
||
## Features | ||
- Ability to select spawn after selecting the character | ||
|
||
## Installation | ||
### Manual | ||
- Download the script and put it in the `[qb]` directory. | ||
- Add the following code to your server.cfg/resouces.cfg | ||
``` | ||
ensure qb-core | ||
ensure qb-spawn | ||
ensure qb-apartments | ||
ensure qb-garages | ||
``` | ||
|
||
## Configuration | ||
An example to add spawn option | ||
``` | ||
QB.Spawns = { | ||
["spawn1"] = { -- Needs to be unique | ||
coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coords player will be spawned | ||
location = "spawn1", -- Needs to be unique | ||
label = "Spawn 1 Name", -- This is the label which will show up in selection menu. | ||
}, | ||
["spawn2"] = { -- Needs to be unique | ||
coords = vector4(1.1, -1.1, 1.1, 180.0), -- Coords player will be spawned | ||
location = "spawn2", -- Needs to be unique | ||
label = "Spawn 2 Name", -- This is the label which will show up in selection menu. | ||
}, | ||
} | ||
``` | ||
Populate `Spawns` list with owner properties. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.