翻译一下
groups = shared.police,blip = {
id = 110, colour = 84, scale = 0.8
}, inventory = {
{ name = 'ammo-9', price = 5, },
{ name = 'ammo-rifle', price = 5, },
{ name = 'WEAPON_FLASHLIGHT', price = 200 },
{ name = 'WEAPON_NIGHTSTICK', price = 100 },
{ name = 'WEAPON_PISTOL', price = 500, metadata = { registered = true, serial = 'POL' }, license = 'weapon' },
{ name = 'WEAPON_CARBINERIFLE', price = 1000, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 3 },
{ name = 'WEAPON_STUNGUN', price = 500, metadata = { registered = true, serial = 'POL'} }
}, locations = {
vec3(451.51, -979.44, 30.68)
}, targets = {
{ loc = vec3(453.21, -980.03, 30.68), length = 0.5, width = 3.0, heading = 270.0, minZ = 30.5, maxZ = 32.0, distance = 6 }
}
groups = shared.police,
blip = {
id = 110, colour = 84, scale = 0.8
}, inventory = {
{ name = 'ammo-9', price = 5, },
{ name = 'ammo-rifle', price = 5, },
{ name = 'WEAPON_FLASHLIGHT', price = 200 },
{ name = 'WEAPON_NIGHTSTICK', price = 100 },
{ name = 'WEAPON_PISTOL', price = 500, metadata = { registered = true, serial = 'POL' }, license = 'weapon' },
{ name = 'WEAPON_CARBINERIFLE', price = 1000, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 3 },
{ name = 'WEAPON_STUNGUN', price = 500, metadata = { registered = true, serial = 'POL'} }
}, locations = {
vec3(451.51, -979.44, 30.68)
}, targets = {
{ loc = vec3(453.21, -980.03, 30.68), length = 0.5, width = 3.0, heading = 270.0, minZ = 30.5, maxZ = 32.0, distance = 6 }
}
这段代码是一个配置表,包含了警察的组信息、地图显示标记、库存信息、装备位置、目标位置等。 以下是您提供代码的中文翻译:
groups = shared.police,-- 用户组:共享的警察组
blip = {-- 地图标记
id = 110,-- 标记ID
colour = 84,-- 标记颜色
scale = 0.8-- 标记大小比例
},
inventory = {-- 库存物品
{ name = 'ammo-9', price = 5, },-- 9毫米子弹,价格5
{ name = 'ammo-rifle', price = 5, },-- 步枪子弹,价格5
{ name = 'WEAPON_FLASHLIGHT', price = 200 },-- 手电筒,价格200
{ name = 'WEAPON_NIGHTSTICK', price = 100 },-- 警棍,价格100
{ name = 'WEAPON_PISTOL', price = 500, metadata = { registered = true, serial = 'POL' }, license = 'weapon' },-- 手枪,价格500,已注册,序列号为'POL',持有许可
{ name = 'WEAPON_CARBINERIFLE', price = 1000, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 3 },-- 卡宾枪,价格1000,已注册,序列号为'POL',持有许可,等级3
{ name = 'WEAPON_STUNGUN', price = 500, metadata = { registered = true, serial = 'POL'} }-- 催泪枪,价格500,已注册,序列号为'POL'
},
locations = {-- 位置
vec3(451.51, -979.44, 30.68)-- 三维坐标
},
targets = {-- 目标
{ loc = vec3(453.21, -980.03, 30.68), length = 0.5, width = 3.0, heading = 270.0, minZ = 30.5, maxZ = 32.0, distance = 6 }-- 目标位置及其参数
}
如果您在FiveM脚本编写或其他相关问题上有更多需求,请随时告诉我!
页:
[1]