Skip to content

Commit

Permalink
feat: re-imagine UI using scaleform
Browse files Browse the repository at this point in the history
* 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
3 people authored May 2, 2024
1 parent 3099005 commit 71cf046
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 579 deletions.
43 changes: 2 additions & 41 deletions README.md
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.
211 changes: 0 additions & 211 deletions client.lua

This file was deleted.

Loading

0 comments on commit 71cf046

Please sign in to comment.