Хелп по фастику

TopCarl

Участник
Автор темы
107
14
Ебу че за хуйня, переменная nick не работает
Lua:
require "lib.moonloader"
local nick = sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(playerPed)))
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(1000) end
    while true do
        wait(0)
        if isKeyJustPressed(VK_1) then
            sampSendChat('/flip'..nick)
        end
    end
end