查看: 707|回复: 0
收起左侧

[文字教程] 添加新图标

[复制链接]

升级进度: 43%

YRY 发表于 2022-12-7 20:37:48 | 显示全部楼层 |阅读模式
  local blips = {
    -- Bronx 247
       {title="名字", colour=颜色, id=图标ID, 坐标xyz x=-1019.128, y=1841.390, z=22.363},
    -- {title="blips ", colour=2, id=52, x=1373.593, y=2116.121, z=15.999},
    -- {title="blips ", colour=2, id=52, x=1054.780, y=-43.949, z=13.434},
    -- {title="blips ", colour=2, id=52, x=1389.072, y=1135.206, z=37.812},
    -- {title="blips ", colour=2, id=52, x=-1114.779, y=2172.492, z=26.970},
    -- {title="blips ", colour=2, id=52, x=344.750, y=1564.093, z=13.956},
    -- {title="blips ", colour=2, id=52, x=-1019.128, y=1841.390, z=22.363},


    }

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, 0.9)
      SetBlipColour(info.blip, info.colour)
      SetBlipAsShortRange(info.blip, true)
    BeginTextCommandSetBlipName("STRING")
      AddTextComponentString(info.title)
      EndTextCommandSetBlipName(info.blip)
    end
end)


以上代码无论是新建lua文件 还是添加到任何插件上 运行就可以启动


回复 论坛版权

使用道具 举报

ahome_bigavatar:guest
ahome_bigavatar:welcomelogin
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|首页 ( 冀ICP备2021005225号-1 )|网站地图 |网站地图

GMT+8, 2024-2-26 16:31 , Processed in 0.110354 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表