example
example

求助 下面这段汉化后显示方框,整个端已经全部更换了支持中文的字体

  • 主题发起人 主题发起人 mysql
  • 开始时间 开始时间

mysql

新用户
认证用户
黄金
29.48 黄金
下面这段汉化后显示方框,相关文件下目录下没有 SetTextFont(4) 这个代码,英文显示正常,qb端,整个端已经全部更换了支持中文的字体
地图上的标点位置。 文件夹名称是 toxic-blips
local blips = {
{title="SHIzhengting", colour=1, id=457, scale = 0.7, x = 236.7397, y = -408.588, z = 47.924},
{title="改装店", colour=7, id=326, scale = 0.7, x = 155.79, y = -3031.23, z = 7.04},
{title="飞往洛圣都", colour=5, id=16, scale = 0.8, x = 4436.875, y = -4483.02, z = 4.3078},
{title="本尼车坊", colour=5, id=72, scale = 0.6, x = -36.52, y = -1051.0, z = 27.72},
{title="本尼车坊 PDM", colour=5, id=72, scale = 0.6, x = -209.78, y = -1320.57, z = 30.21},
{title="VIP 技工", colour=5, id=72, scale = 0.6, x = 316.5123, y = -699.406, z = 29.362},
{title="豪华车行", colour=3, id=72, scale = 0.6, x = 539.79, y = -179.2, z = 53.81},
{title="超级商城", colour=3, id=78, scale = 0.8, x = 40.76, y = -1744.48, z = 29.3},
{title="护林站", colour=2, id=137, scale = 1.0, x = 387.92, y = 788.41, z = 187.57},
{title="猫咪咖啡馆", colour=8, id=75, scale = 1.0, x = -580.570, y = -1075.14, z = 22.329},
{title="粉红笼汽车旅馆", colour=8, id=40, scale = 0.9, x = 318.42, y = -227.71, z = 54.02},
{title="宠物店", colour=48, id=273, scale = 0.7, x = 562.3358, y = 2738.950, z = 42.440},
{title="苹果商店", colour=8, id=682, scale = 0.9, x = 327.3, y = -279.73, z = 53.9},
{title="地狱火俱乐部", colour=8, id=121, scale = 0.9, x = 346.8999, y = -981.135, z = 29.333},
{title="海滨公园", colour=5, id=304, scale = 1.0, x = -1834.20, y = -1218.15, z = 13.358},
{title="扣押车库", colour=1, id=68, scale = 0.7, x = -136.76, y = -1160.8, z = 23.77},

-------------------------- 测试服务器标记 -------------------------------
{title="毒品销售点", colour=1, id=630, scale = 0.4, x = -14.1263, y = 3039.835, z = 40.863},
{title="大麻田", colour=1, id=630, scale = 0.4, x = 314.2126, y = 4309.751, z = 47.351},
{title="黑市商人", colour=1, id=630, scale = 0.4, x = 717.8121, y = 4175.596, z = 40.709},
{title="酿酒厂", colour=1, id=630, scale = 0.4, x = 1534.632, y = 1702.453, z = 109.71},
{title="黑市", colour=1, id=630, scale = 0.4, x = -825.802, y = -109.772, z = 27.958},
{title="劫车点", colour=1, id=630, scale = 0.4, x = 1205.002, y = -3114.83, z = 5.5403},
{title="太平洋劫案起点", colour=1, id=630, scale = 0.4, x = -619.909, y = 330.7869, z = 85.114},
{title="房屋抢劫起点", colour=1, id=630, scale = 0.4, x = 1509.924, y = 6326.266, z = 24.607},
{title="艺术品劫案起点", colour=1, id=630, scale = 0.4, x = -57.1904, y = 6395.630, z = 31.490},
{title="实验室劫案起点", colour=1, id=630, scale = 0.4, x = 285.0119, y = -2917.28, z = 5.5494},
{title="火车劫案起点", colour=1, id=630, scale = 0.4, x = -686.947, y = -2415.57, z = 13.944},
{title="冰毒实验室入口", colour=1, id=630, scale = 0.4, x = -1185.56, y = -445.649, z = 43.937},
{title="盐酸提取点", colour=1, id=630, scale = 0.4, x = -1069.28, y = 4945.533, z = 212.18},
{title="硫酸提取点", colour=1, id=630, scale = 0.4, x = -3026.97, y = 3334.861, z = 10.037},
{title="氢氧化钠提取点", colour=1, id=630, scale = 0.4, x = -389.376, y = -1874.80, z = 20.527},
{title="化学品仓库", colour=1, id=630, scale = 0.4, x = 1264.973, y = 1803.969, z = 82.935},
{title="化学加工台", colour=1, id=630, scale = 0.4, x = 3536.795, y = 3662.721, z = 28.121},
{title="可卡因田", colour=1, id=630, scale = 0.4, x = 2806.472, y = 4774.263, z = 46.972},
{title="可卡因实验室入口", colour=1, id=630, scale = 0.4, x = 813.7679, y = -2399.93, z = 23.657},
{title="海洛因田", colour=1, id=630, scale = 0.4, x = -2338.25, y = -53.6780, z = 95.403},
{title="海洛因加工点", colour=1, id=630, scale = 0.4, x = 1413.832, y = -2041.97, z = 51.998},
{title="化学加工厂", colour=1, id=630, scale = 0.4, x = -679.916, y = 5800.298, z = 17.330},
{title="LSD 实验室", colour=1, id=630, scale = 0.4, x = 2503.840, y = -428.099, z = 92.988},
{title="拆车厂", colour=1, id=630, scale = 0.4, x = 2340.46, y = 3051.86, z = 48.15},
{title="太平洋俱乐部", colour=1, id=304, scale = 0.9, x = -3038.64, y = 32.53, z = 10.12},
----------------------------------------------------------------------------------------------
{title="海滨别墅", colour=5, id=350, scale = 0.9, x = -3233.68, y = 814.86, z = 14.08},
{title="山顶庄园", colour=5, id=350, scale = 0.9, x = 1368.72, y = 1147.68, z = 113.76},
{title="森林别墅", colour=5, id=350, scale = 0.9, x = -1893.08, y = 2035.71, z = 140.74},
{title="湖景别墅", colour=5, id=350, scale = 0.9, x = -1758.2, y = 360.46, z = 89.31},
}

Citizen.CreateThread(function()
Citizen.Wait(0)
local bool = true

if bool then
-- 创建区域范围光圈
for k,v in pairs(blips) do
zoneblip = AddBlipForRadius(v.x,v.y,v.z, 0.0)
SetBlipSprite(zoneblip,1)
SetBlipColour(zoneblip,49)
SetBlipAlpha(zoneblip,75)
end

-- 创建地图标记点
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, info.scale)
SetBlipColour(info.blip, info.colour)
SetBlipAsShortRange(info.blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(info.title)
EndTextCommandSetBlipName(info.blip)
end

bool = false
end
end)
 
没有SetTextFont(0)就给他加在AddTextComponentString的前面
 
建议你把这个文件直接上传,最好上传这个插件的所有文件,
 
后退
顶部