Skip to content

๐Ÿฆฒ ์™œ.qbox์ธ๊ฐ€์š”?

- ๐Ÿง”์™œ.์•ˆ๋˜๊ฒ ์–ด?

์ด ์‚ฌ์ดํŠธ๋Š” qbox์˜ ๋ชฉ์ ์„ ๊ฐ„๋žตํ•˜๊ฒŒ ์š”์•ฝํ•  ๋ฟ, ๊ณต์‹ ํŽ˜์ด์ง€๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค

Qbox ์˜ค๋ฆฌ

๐Ÿ‘‹ qbox๊ฐ€ ๋ฌด์—‡์ธ์ง€ ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•ด ์ฃผ์‹ค ์ˆ˜ ์žˆ๋‚˜์š”? โ€‹

+ ๋„ค, ๋ฌผ๋ก ์ž…๋‹ˆ๋‹ค.

์›๋ž˜ QBCore์—์„œ ๋ถ„๊ธฐํ•œ Qbox๋Š” ์ฝ”๋“œ ํ’ˆ์งˆ์„ ํ–ฅ์ƒ์‹œํ‚ค๊ณ , ๋ณด์•ˆ์„ ๊ฐ•ํ™”ํ•˜๋ฉฐ, ์„ฑ๋Šฅ ์˜ค๋ฒ„ํ—ค๋“œ๋ฅผ ๋‚ฎ์ถ”๊ณ , overextended ๋ฆฌ์†Œ์Šค์™€ ํ†ตํ•ฉํ•˜๊ธฐ ์œ„ํ•ด ๋งŽ์€ ๋ฆฌ์†Œ์Šค๊ฐ€ ์žฌ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ‘ท qbcore ์Šคํฌ๋ฆฝํŠธ๋Š” qbox์—์„œ ์ž‘๋™ํ•˜๋‚˜์š”? โ€‹

+ ๋„ค, ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๋ฌธ์„œํ™”๋˜๊ณ  ์˜ฌ๋ฐ”๋ฅธ qb-core ์‚ฌ์šฉ ๊ฒฝ๋กœ์™€์˜ ํ˜ธํ™˜์„ฑ์„ ์œ„ํ•œ ๋ธŒ๋ฆฟ์ง€ ๊ณ„์ธต์„ ๋งŒ๋“ค์—ˆ์œผ๋ฉฐ, ๋Œ€๋ถ€๋ถ„์˜ QBCore ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋ณ€๊ฒฝ ์—†์ด ๊ณ„์† ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ฆ qbox ์‚ฌ์šฉ ์ค€๋น„๊ฐ€ ๋˜์—ˆ๋‚˜์š”? โ€‹

+ ๋„ค, ์ค€๋น„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Qbx_core๊ฐ€ qb-core ์†Œ์Šค์™€์˜ ํ˜ธํ™˜์„ฑ์„ ๊ฐ–์ถ”๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์•ˆ์ •์ ์ธ ๊ฒฝํ—˜์„ ์œ„ํ•ด ์ถœํŒ๋œ Qbox ์†Œ์Šค๋งŒ ์‚ฌ์šฉํ•˜์‹œ๊ธธ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

โšก ๊ฐ„๋‹จํ•œ ๋น„๊ต๋ฅผ ํ•ด๋ด…์‹œ๋‹ค โ€‹

๊ฐ„๋‹จํ•œ ๊ฐœ์š”QBCoreQbox
๊ฐ€๋ฒผ์›€๐Ÿ”งโœ…
๋ฆฐํŠธ ์˜ค๋ฅ˜ ์—†์Œโญ•โœ…
์ฝ๊ธฐ ์‰ฝ๊ณ  ์ž˜ ๊ตฌ์„ฑ๋จ๐Ÿ”งโœ…
๋ชจ๋“ˆ ๊ตฌ์กฐโญ•โœ…
์‚ฌ์šฉ ์ค‘๋‹จ๋œ ํ•จ์ˆ˜ ํ˜ธ์ถœ ์—†์Œโญ•โœ…

๐Ÿ“š ๋” ์ฝ์–ด๋ณด๊ธฐ

๐Ÿ“ฆ ๋‹ค์Œ์€ ๋ฌด์—‡์ธ๊ฐ€์š”? โ€‹

lua
-- qbx_core/server/storage/main.lua

local players = require 'server.storage.players'

---@class StorageFunctions
---@field insertBan fun(request: InsertBanRequest)
---@field fetchBan fun(request: GetBanRequest): BanEntity?
---@field deleteBan fun(request: GetBanRequest)
---@field upsertPlayerEntity fun(request: UpsertPlayerRequest)
---@field fetchPlayerSkin fun(citizenId: string): PlayerSkin?
---@field fetchPlayerEntity fun(citizenId: string): PlayerEntity?
---@field fetchAllPlayerEntities fun(license2: string, license?: string): PlayerEntity[]
---@field deletePlayer fun(citizenId: string): boolean success
---@field fetchIsUnique fun(type: UniqueIdType, value: string|number): boolean
---@field addPlayerToJob fun(citizenid: string, group: string, grade: integer)
---@field addPlayerToGang fun(citizenid: string, group: string, grade: integer)
---@field fetchPlayerGroups fun(citizenid: string): table<string, integer>, table<string, integer> jobs, gangs
---@field removePlayerFromJob fun(citizenid: string, group: string)
---@field removePlayerFromGang fun(citizenid: string, group: string)

---@type StorageFunctions
return players 

wait

why.qbox