翻译一下哦
ActionControls = {
forward = {
label = "Forward +/-",
codes = {33, 32},
},
right = {
label = "Right +/-",
codes = {35, 34},
},
up = {
label = "Up +/-",
codes = {52, 51},
},
add_point = {
label = "Add Point",
codes = {24},
},
undo_point = {
label = "Undo Last",
codes = {25},
},
set_position = {
label = "Set Position",
codes = {24},
},
add_garage = {
label = "Add Garage",
codes = {24},
},
rotate_z = {
label = "RotateZ +/-",
codes = {20, 73},
},
rotate_z_scroll = {
label = "RotateZ +/-",
codes = {17, 16},
},
mod_z_shell = {
label = "Z Axis +/-",
codes = {180, 181},
},
mod_zoom_shell = {
label = "Zoom +/-",
codes = {180, 181},
},
increase_z = {
label = "Z Boundary +/-",
codes = {180, 181},
},
decrease_z = {
label = "Z Boundary +/-",
codes = {21, 180, 181},
},
change_shell = {
label = "Next Shell Model",
codes = {217},
},
done = {
label = "Done",
codes = {191},
},
back = {
label = "Back",
codes = {194},
},
change_player = {
label = "Player +/-",
codes = {82, 81},
},
select_player = {
label = "Select Player",
codes = {191},
},
enter = {
label = "Select",
codes = {191},
},
cancel = {
label = "Cancel",
codes = {194},
},
mouse1 = {
label = "Set",
codes = {24},
},
},
}
这段代码是一个 Fivem 插件的输入控制定义,它用于定义插件中各种操作对应的按键控制。
ActionControls 是一个包含各种操作控制的表格,每个操作都有一个唯一的标识符,比如 "forward"、"right"、"up"等,并且每个操作都有一个对应的标签和按键编码。
这些按键编码是根据 Fivem 游戏引擎中预定义的按键编码来设置的,通常是一些数字键或功能键。
这些操作控制大多数是放在服务器端的脚本文件 server.lua 中,用于定义玩家在游戏中的各种交互操作。也有一些操作控制可能会放在客户端脚本中,用于处理一些客户端的交互逻辑。
总的来说,这段代码为 Fivem 插件的输入控制提供了一个清晰的定义,方便开发者根据需求进行自定义和扩展。
页:
[1]