我帮你单独看是收费的。一般默认的地图在步行状态是不显示的,你需要在配置文件里边修改一下,如果实在不行不知道怎么弄,你就换个地图的插件插件没报错要不要我发你插件你帮我看看
local blips = {
{title="Example 1", colour=5, id=446, x = -347.291, y = -133.370, z = 38.009}
}
Citizen.CreateThread(function()
for _, info in pairs(blips) do
info.blip = AddBlipForCoord(info.x, info.y, info.z)
SetBlipSprite(info.blip, info.id)
SetBlipDisplay(info.blip, 4)
SetBlipScale(info.blip, 1.0)
SetBlipColour(info.blip, info.colour)
SetBlipAsShortRange(info.blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(info.title)
EndTextCommandSetBlipName(info.blip)
end
end)
如果插件不支持的话,没有图标的功能的话,就按照他的方案做Lua:local blips = { {title="Example 1", colour=5, id=446, x = -347.291, y = -133.370, z = 38.009} } Citizen.CreateThread(function() for _, info in pairs(blips) do info.blip = AddBlipForCoord(info.x, info.y, info.z) SetBlipSprite(info.blip, info.id) SetBlipDisplay(info.blip, 4) SetBlipScale(info.blip, 1.0) SetBlipColour(info.blip, info.colour) SetBlipAsShortRange(info.blip, true) BeginTextCommandSetBlipName("STRING") AddTextComponentString(info.title) EndTextCommandSetBlipName(info.blip) end end)
把这段代码插入到 你插件里 client.lua里面
title 代表显示的名字
colour 代表颜色 https://docs.fivem.net/docs/game-references/blips/#blip-colors
id 代表 显示图标的类型 https://docs.fivem.net/docs/game-references/blips/
x y z 代表位置