- 6
- 0
- Версия SA-MP
-
- 0.3.7-R3
Есть самописный биндер на луа. Проблема в том, что русские буквы в игре выглядят непонятными символами. Просьба помочь
Lua:
require "lib.moonloader"
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
if isKeyJustPressed(VK_X) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/usedrugs 3")
end
if isKeyJustPressed(VK_1) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/armour")
end
if isKeyJustPressed(VK_R) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("q")
end
if isKeyJustPressed(VK_K) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/key")
end
if isKeyJustPressed(VK_3) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/balon 1 1")
end
if isKeyJustPressed(VK_4) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/eat")
end
if isKeyJustPressed(VK_V) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/crr")
end
if isKeyJustPressed(VK_O) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/lavka")
end
if isKeyJustPressed(VK_2) and not sampIsChatInputActive() and not sampIsDialogActive() then
sampSendChat("/s Покупаю металл и камень, лён и хлопок; алмазные камни; уголь; ДВК")
end
end
end