Skip to content

Commit

Permalink
chore(README): re-did (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Oct 28, 2024
1 parent c18b316 commit b7e61ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### todo
![title](https://cdn.discordapp.com/attachments/1027004645912088686/1300262762630615181/spawn.jpg?ex=67203390&is=671ee210&hm=1a667ff7b841ac84f076e19f3eee8647c52f7b0ee729e6eceea031da84750cac&)

Populate `Spawns` list with owner properties.
# qbx_spawn

Allows players to choose their spawn position when loading into the server. Supports predefined locations via the config or the position the player was in when they last logged out. Players select which spawnpoint they want on a map before being teleported there.
2 changes: 2 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
lib.versionCheck('Qbox-project/qbx_spawn')

lib.callback.register('qbx_spawn:server:getLastLocation', function(source)
local player = exports.qbx_core:GetPlayer(source)
return json.decode(MySQL.single.await('SELECT position FROM players WHERE citizenid = ?', {player.PlayerData.citizenid}).position), player.PlayerData.metadata.currentPropertyId
Expand Down

0 comments on commit b7e61ac

Please sign in to comment.