Lua

Jendosik

Участник
Автор темы
211
12
Версия MoonLoader
.026-beta
Помогите захожу и инт деньги в банк положили ну не проподает менюшка

Lua:
script_name('autoGrac')


require "lib.moonloader"
local vkeys = require('vkeys')
local imgui = require 'imgui'
local encoding = require 'encoding'
local inicfg = require 'inicfg'
local samp = require 'samp.events'
local main_color = 0x02274D
local main_color2 = "{008000}"
local main_color1 = '{8b0000}'
local color = '{00bfff}'
encoding.default = 'CP1251'
u8 = encoding.UTF8


local active = false


function main()
    if not isSampAvailable() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage('{00bfff}Script' ..main_color1..' off', -1)
     sampRegisterChatCommand('grac', cmd_test)





    while true do
        wait(0)

            

        
            end
        end


function samp.onCreate3DText(id, color, position, distance, testLOS, attachedPlayerId, attachedVehicleId, text)
    -- sampAddChatMessage(id ..text, -1)
    if id == 1024 then
        sampSendChat('/bank')
        sampSendDialogResponse(114,1,0,0)
        sampSendDialogResponse(115,1,0,getPlayerMoney(PLAYER_HANDLE))


            

end
end




function samp.onShowDialog(d, s, t, b1, b2, t)
    print(d)
end
sa-mp-109.png