依赖
信息
它几乎与您可能拥有的所有电话兼容,但如果您的电话类型与普通电话不同,您可以在 client.lua 中更改第 60 行的功能,还有一些功能可以检查玩家在通话时是否在公用电话旁边,根据自己的喜好使用它,并确保将此 followig 代码添加到您的 qb-phone/main.lua 中的任何位置
local PublicPhoneobject = {
-2103798695,1158960338,
1281992692,1511539537,
295857659,-78626473,
-1559354806
}
exports['qb-target']:AddTargetModel(PublicPhoneobject, { -- This defines the models, can be a string or a table
options = { -- This is your options table, in this table all the options will be specified for the target to accept
{
icon = "fas fa-phone-volume",
label = "Make Call",
event = "nyx-payphone:showpphone",
},
},
distance = 2.5, -- This is the distance for you to be at for the target to turn blue, this is in GTA units and has to be a float value
})
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
- 最新
- 最热
只看作者