https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
下面是qbcore/config.lua的代码注释,已经详细说明了每一个参数配置的对应作用。-- 可以自定义配置https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
QBConfig = {}https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
QBConfig.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- 从配置文件中获取最大玩家数量,默认为 48cwfbloyqukugjtezpiohhqvncsluztecpjdbx
QBConfig.DefaultSpawn = vector4(-1035.71, -2731.87, 12.86, 0.0) -- 默认生成点https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
QBConfig.UpdateInterval = 5 -- 多久更新一次玩家数据(分钟)pwkzquisnwkdzbxgbjgivjnafzqqwoymljlb
QBConfig.StatusInterval = 5000 -- 每隔几毫秒检查一次饥饿/口渴状态 1000ms = 1swcjdotiqwmlxieknkdheyxthdlkabsdyv
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
QBConfig.Money = {}nkbccbsdcgarvbrtygwdmxvngeykiwpvgr
QBConfig.Money.MoneyTypes = { cash = 1000, bank = 10000, crypto = 0, blackmoney = 0 }https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
-- type = startamount - Add or remove money types for your server (for ex. blackmoney = 0), remember once added it will not be removed from the database!type = startamounthttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
-- 为您的服务器添加或删除货币类型(例如 blackmoney = 0),请记住一旦添加它就不会从数据库中删除!qxowkklkylsinpnjswl
-- 可通过该配置添加货币类型,设置玩家初次进入服务器时各类货币的初始值,默认现金cash=500、银行存款bank=5000、crypto=0;在此我设置新增了一项黑钱blackmoney货币;https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
QBConfig.Money.DontAllowMinus = { 'cash', 'crypto', 'blackmoney' } -- Money that is not allowed going in minus 限制不允许出现负数的货币字段https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
QBConfig.Money.PayCheckTimeOut = 30 -- The time in minutes that it will give the paycheck 发放工资的时间(分钟) 默认10分钟一次https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
QBConfig.Money.PayCheckSociety = false https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
-- If true paycheck will come from the society account that the player is employed at, requires qb-managementhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
-- 如果玩家就职在非系统工作内,则需要qb-工作管理通过玩家与玩家之间发薪https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
QBConfig.Player = {}https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
QBConfig.Player.HungerRate = 4.3 -- Rate at which hunger goes down.-- 饥饿感下降的速度。 默认4.2https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
QBConfig.Player.ThirstRate = 5.0 -- Rate at which thirst goes down.-- 口渴感下降的速度。 默认3.8https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
-- 玩家 血型axoxxbdwcihczchonyjnnjlsckuzzeiabwyzy
QBConfig.Player.Bloodtypes = {https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
'A+', 'A-', 'B+', 'B-', 'AB+', 'AB-', 'O+', 'O-',https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
}https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
yjnaaodnjp
-- 玩家默认https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
QBConfig.Player.PlayerDefaults = {https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
citizenid = function() return QBCore.Player.CreateCitizenId() end,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
cid = 1,https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
-- 设置 货币初始https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
money = function()kjcsnrpdrtgzmzhmdeevlqlxy
local moneyDefaults = {}https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
for moneytype, startamount in pairs(QBConfig.Money.MoneyTypes) dojtqmvxmmsoemmliqxgllmqjxzfnu
moneyDefaults[moneytype] = startamounthttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
endhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
return moneyDefaultshttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
end,https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
optin = true,pwkzquisnwkdzbxgbjgivjnafzqqwoymljlb
-- 公民信息kkffdamzpyoaemumrwgzwumwgjjtgkjqvowypixegle
charinfo = {https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
firstname = 'Firstname',btqurgxdyggdegzdpqhdnaa
lastname = 'Lastname',sxztozbglmgbdgaybenbuegsmpt
birthdate = '00-00-0000',https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
gender = 0,https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
nationality = 'USA',https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
phone = function() return QBCore.Functions.CreatePhoneNumber() end,https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
account = function() return QBCore.Functions.CreateAccountNumber() endhttps://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
},sxztozbglmgbdgaybenbuegsmpt
-- 工作https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
job = {https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
name = 'unemployed',sfjvthgfblevncgvnjrbqyzzqkitlh
label = 'Civilian',cjgkzcwkzepksaozfmwyuzkezlwdksqmbwxazulz
payment = 10,https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
type = 'none',https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
onduty = false,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
isboss = false,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
grade = {https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
name = 'Freelancer',https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
level = 0https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
}https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
},https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
-- 帮派 组织https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
gang = {afgvcbraismkzprayuudpapqfyiiarlb
name = 'none',https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
label = 'No Gang Affiliation',https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
isboss = false,https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
grade = {xsrglpmiwrydj
name = 'none',https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
level = 0yasozaxgvwbznsqyvrtemtewsbhf
}https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
},axoxxbdwcihczchonyjnnjlsckuzzeiabwyzy
-- 用户ped信息cqaorgyahayzxggrcigfkrwldweeaqkchk
metadata = {https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
hunger = 100,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
thirst = 100,https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
stress = 0,btqurgxdyggdegzdpqhdnaa
isdead = false,https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
inlaststand = false,https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
armor = 0,https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
ishandcuffed = false,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
tracker = false,udjwjgnlzdfrkdvjkbmoihttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
injail = 0,https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
jailitems = {},https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
status = {},https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
phone = {},https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
rep = {},https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
currentapartment = nil,https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
callsign = 'NO CALLSIGN',kkffdamzpyoaemumrwgzwumwgjjtgkjqvowypixegle
bloodtype = function() return QBConfig.Player.Bloodtypes[math.random(1, #QBConfig.Player.Bloodtypes)] end,https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
fingerprint = function() return QBCore.Player.CreateFingerId() end,https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
walletid = function() return QBCore.Player.CreateWalletId() end,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
criminalrecord = {cjgkzcwkzepksaozfmwyuzkezlwdksqmbwxazulz
hasRecord = false,https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
date = nillkkfufqoxxbovpkfavqyhihuyuerrqkcavivazjyxlmsa
},https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
licences = {https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
driver = true,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
business = false,pvotvgawoyahspese
weapon = falsehttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
},https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
inside = {https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
house = nil,https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
apartment = {gtzeahobtuuhhsoctpfpyqhmpqcdphzwbzabgocaiwhqpwsj
apartmentType = nil,bvatszngyonkbtmfamdbqqdkvkdhaxlbs
apartmentId = nil,https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
}https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
},https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
phonedata = {https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
SerialNumber = function() return QBCore.Player.CreateSerialNumber() end,jmrljwaotvfffyewpfleqkwvr
InstalledApps = {}https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
}https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F?pwd=efg0
},vlkisixftyzfdzrhbiyettowaoulqnwlyhuqqrw
-- 位置https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
position = QBConfig.DefaultSpawn,rsmmywgcvvljctzygcqsxqlbtbkwcizt
-- 背包为空lkkfufqoxxbovpkfavqyhihuyuerrqkcavivazjyxlmsa
items = {},https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
}ffbrbjjkedx
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
QBConfig.Server = {} rycybqzbeufoqpueauigmsjhbujoirazpdyrtys
-- General server confighttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
-- 常规服务器配置https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
QBConfig.Server.Closed = falsehttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
-- Set server closed (no one can join except people with ace permission 'qbadmin.join')https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
-- 设置服务器关闭(除具有 ace 权限“qbadmin.join”的人外,任何人都不能加入)gtzeahobtuuhhsoctpfpyqhmpqcdphzwbzabgocaiwhqpwsj
QBConfig.Server.ClosedReason = '服务器维护中'这是干扰码
-- Reason message to display when people can't join the serverhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
-- 当人们无法加入服务器时显示的原因消息https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
QBConfig.Server.Uptime = 0https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
-- Time the server has been up.https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
-- 服务器启动的时间。https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
QBConfig.Server.Whitelist = false https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
-- Enable or disable whitelist on the servervlkisixftyzfdzrhbiyettowaoulqnwlyhuqqrw
-- 在服务器上启用或禁用白名单https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
QBConfig.Server.WhitelistPermission = 'admin'https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
-- Permission that's able to enter the server when the whitelist is onhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
-- 白名单开启时可进入服务器的权限yrqzyqxxodefgmmmwdiigfm
QBConfig.Server.PVP = true https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
-- Enable or disable pvp on the server (Ability to shoot other players)https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
-- 在服务器上启用或禁用 pvp(能够射击其他玩家)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
QBConfig.Server.Discord = '' -- Discord invite link Discord 邀请链接https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
QBConfig.Server.CheckDuplicateLicense = true -- Check for duplicate rockstar license on join 加入时检查重复的 Rockstar 许可证pwkzquisnwkdzbxgbjgivjnafzqqwoymljlb
不影响正文阅读
QBConfig.Server.Permissions = { 'god', 'admin', 'mod' }https://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
-- Add as many groups as you want here after creating them in your server.cfgpvotvgawoyahspese
-- 在您的 server.cfg 中创建组后,您可以在此处添加任意数量的组。pwkzquisnwkdzbxgbjgivjnafzqqwoymljlb
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
-- 命令行配置esvxiitgvgyjlkvwtmu
QBConfig.Commands = {} -- Command Configuration 命令配置pzxfszcxpj
QBConfig.Commands.OOCColor = { 255, 165, 0 } -- RGB color code for the OOC command OOC 命令的 RGB 颜色代码 默认 255, 151, 133https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
sxztozbglmgbdgaybenbuegsmpt
QBConfig.Notify = {}https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
QBConfig.Notify.NotificationStyling = {btqurgxdyggdegzdpqhdnaa
group = false, -- Allow notifications to stack with a badge instead of repeating 允许通知与徽章堆叠而不是重复jcknzkpqwrgjcnylmteyucykikcvoghxjrlicay
position = 'top', -- top-left | top-right | bottom-left | bottom-right | top | bottom | left | right | centerhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
progress = true -- Display Progress Barsymjngonbwunpevryeggvggljfcddvawtmfgttuuqoifsdxqh
}https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
-- These are how you define different notification variantshttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
-- The "color" key is background of the notificationwcjdotiqwmlxieknkdheyxthdlkabsdyv
-- The "icon" key is the css-icon code, this project uses `Material Icons` & `Font Awesome`https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
-- 这些是您定义不同通知变体的方式https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
-- “color” 键是通知的背景cwsdpjgqwpwjcwgwnqgmwkhrokmxflfhiyly
-- “icon” 键是 css-icon 代码,该项目使用 `Material Icons` 和 `Font Awesome`gtzeahobtuuhhsoctpfpyqhmpqcdphzwbzabgocaiwhqpwsj
QBConfig.Notify.VariantDefinitions = {https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
success = {https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
classes = 'success',eulbgkiabyrxhhtwbocclrblztbdl
icon = 'check_circle'https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
},kjcsnrpdrtgzmzhmdeevlqlxy
primary = {https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
classes = 'primary',https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
icon = 'notifications'https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
},https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
warning = {https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
classes = 'warning',https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
icon = 'warning'哈哈
},https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
error = {https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
classes = 'error',wajdcjgkyt
icon = 'error'dyioxtwpqyhmhkxexwwhewtozehmirgmpobmhycxxjket https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
},https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
police = {https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
classes = 'police',不影响正文阅读
icon = 'local_police'https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
},https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
ambulance = {https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
classes = 'ambulance',这是干扰码
icon = 'fas fa-ambulance'https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
}https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
} https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
client文件夹https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
drawtext.lua用于处理客户端的文本绘制功能。该脚本主要作用是根据特定条件在屏幕绘制文本,提供信息或指示给玩家。zmzlkexqmgpxexqtbxeqhllnfxamfyafkarveplrv
在drawtext.lua中,主要使用以下几个函数来实现文本绘制:https://pan.baidu.com/s/5X6Y7Z8A9B0C1D2E3F4G
1.SetDrawOrigin(x, y, z, 0):设置绘制原点为指定的3D坐标,所有后续的绘制操作都基于这个原点。https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
2.DrawText(x, y):在屏幕上的指定位置绘制文本。cwsdpjgqwpwjcwgwnqgmwkhrokmxflfhiyly
3.DrawRect(x, y, width, height, r, g, b, a):绘制背景矩形,用于突出显示文本。https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
4.ClearDrawOrigin():重置绘制原点,确保后续的绘制操作不受影响。https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
events.lua文件用于处理各种游戏事件。这些事件可以是由玩家触发的,例如使用物品、完成任务等,也可以是由系统触发的,例如系统定时器、状态变化等。通过事件机制,events.lua文件实现了模块之间的通信和交互,增强对模块的可维护性和扩展性。https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
简单理解事件触发器,其中程序的执行流由事件的发生来驱动。事件可以是用户操作(如点击按钮)、消息传递、传感器输出或任何其他形式的输入。https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
注册事件:使用RegisterNetEvent函数注册事件。yjnaaodnjp
触发事件:使用TriggerEvent函数触发事件。这是干扰码
监听事件:使用AddEventHandler函数监听事件,并定义事件发生时的处理逻辑。jmrljwaotvfffyewpfleqkwvr
jmrljwaotvfffyewpfleqkwvr
functions.lua文件用于定义各种实用函数,这些函数可以在不同模块中被调用。通过集中管理常用函数,functions.lua提高了代码的复用性和维护性。https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
函数是Lua编程语言的基本组成部分,用于将一段代码逻辑封装成可复用的模块。在 Qb-Core 框架中,函数被广泛用于处理各种操作,如数据处理、事件响应、任务管理等。https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
lkkfufqoxxbovpkfavqyhihuyuerrqkcavivazjyxlmsa
loops.lua文件用于定义各种循环逻辑,这些循环可以用来执行定时任务、持续检查某些条件或更新游戏状态。https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
main.lua文件是游戏资源的入口文件,用于初始化和管理游戏逻辑。它通常包含必要的资源加载、事件注册和全局变量初始化等操作,是整个框架的重要组成部分。eulbgkiabyrxhhtwbocclrblztbdl
cwsdpjgqwpwjcwgwnqgmwkhrokmxflfhiyly
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
server文件夹https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
commands.lua文件用于定义服务器端的命令处理逻辑。这些命令可以在服务器控制台中执行,通常用于管理和调试游戏服务器。fdvikfzjxqivggtvkxbqjncgrloxqbiwfeepjez
debug.lua文件用于调试服务器端的代码逻辑。它包含一些帮助函数和调试工具,便于开发者跟踪和排查问题。https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
events.lua文件用于定义和处理服务器端的事件。事件机制允许模块之间进行通信和触发逻辑操作,实现模块之间的解耦和通信。https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
exports.lua文件用于定义和导出服务器端的函数。这些函数可以被其他资源调用,提供共享功能和逻辑。jcknzkpqwrgjcnylmteyucykikcvoghxjrlicay
functions.lua文件用于定义服务器端的实用函数。这些函数可以在多个模块中复用,简化代码编写。https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
main.lua文件是服务器端的入口文件,用于初始化和管理游戏逻辑。https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
player.lua文件用于处理与玩家相关的逻辑,包括玩家的加载、保存、状态管理等。https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
ajctfvglbeirdcj
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
xsrglpmiwrydj
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
cwsdpjgqwpwjcwgwnqgmwkhrokmxflfhiyly
aowooaayxo
shared文件夹https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
gangs.lua 文件用于定义服务器中所有帮派的相关信息。这些信息包括帮派的名称、等级、权限等,用于管理和控制游戏中的帮派系统。pwkzquisnwkdzbxgbjgivjnafzqqwoymljlb
items.lua 文件用于定义服务器中的所有物品信息。这些信息包括物品的名称、标签、重量、类型等,用于管理和控制游戏中的物品系统。https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
jobs.lua 文件用于定义服务器中的所有工作信息。这些信息包括工作的名称、等级、权限等,用于管理和控制游戏中的工作系统。bjrbxqgknfenpjnbgqmygyzdwacqlbqmlhoiyvtmaxzqgmrmdd
locale.lua 文件用于定义多语言支持的信息。这些信息包括不同语言的文本,用于管理和控制游戏中的本地化系统。https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
locations.lua 文件用于定义服务器中重要的地理位置。这些信息包括地点的坐标、名称等,用于管理和控制游戏中的地理位置系统。afgvcbraismkzprayuudpapqfyiiarlb
main.lua 文件用于定义服务器中共享的主配置和初始化逻辑。这些信息包括全局变量、配置参数等,用于管理和控制游戏的初始化和配置。https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
vehicles.lua 文件用于定义服务器中的所有车辆信息。这些信息包括车辆的名称、模型、属性等,用于管理和控制游戏中的车辆系统。https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
weapons.lua 文件用于定义服务器中的所有武器信息。这些信息包括武器的名称、类型、属性等,用于管理和控制游戏中的武器系统。xsrglpmiwrydj
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
|