RegisterCommand('p', function(source, args)
local location = tonumber(args[1])
if not location or not locations[location] then
TriggerClientEvent("QBCore:Notify", '請輸入正確的地點編號.',"success")
return
end
local coords = locations[location]
if #coords > 1 then
TriggerClientEvent("QBCore:Notify","此坐標分為" .. #coords .. "個,請查看周圍.","error")
end
SetNewWaypoint(coords[1].x, coords[1].y)
TriggerClientEvent("QBCore:Notify", "已經將導航設置到地點.".. location .. ".","success")
end)
客户端用的是这个 QBCore.Functions.Notify("信息", 'error', 5000)我想把通知改成
QBCore:Notify
但改錯了
可以幫我查看嗎代码:RegisterCommand('p', function(source, args) local location = tonumber(args[1]) if not location or not locations[location] then TriggerClientEvent("QBCore:Notify", '請輸入正確的地點編號.',"success") return end local coords = locations[location] if #coords > 1 then TriggerClientEvent("QBCore:Notify","此坐標分為" .. #coords .. "個,請查看周圍.","error") end SetNewWaypoint(coords[1].x, coords[1].y) TriggerClientEvent("QBCore:Notify", "已經將導航設置到地點.".. location .. ".","success") end)
錯誤浏览附件1121
写好了吗?没写好的话我晚点写一个给你感謝哥
纯小白就不用考虑看这种压缩包了。纯小白,崩溃了以后给你一个压缩包那种怎么看呀