LuaLoader
-
github.comDownload
LuaLoader is an alternative to Moonloader, but for GTA VC, based on DK22Pac's Plugin SDK.
If you're interested, the entire source code is located here
And on Github
You need to place all files with the .lua extension in the lualoader folder, which should be created in the game's root folder. The plugin.VC.asi file should be placed in the game's root.
If something doesn't work, the error will be logged in the log file located in the lualoader folder.
The plugin only works with game version 1.0.
Let's look at how a couple of functions work.
require("lualoader/mod")
function main()
while true do wait() -- delay
player = findplayer() -- get the player
if Keypress("VK_H") -- if the H key is pressed
then x,y,z = getcoordinates_on_y(player, 5) -- get the player's current coordinates
car = Createcar("MODEL_PCJ600", x, y, z) -- create a motorcycle
Giveweaponped(player, 600, "uzi") -- and give the ped a weapon.
wait(300)
end
end
end
When the “H” key is pressed, a motorcycle is created, and the player is given a weapon — “Uzi”.
In total, there are over 230 functions. You can even write entire missions.
There is detailed information about scripts and functions in the VK group.
LuaLoader — это аналог Moonloader, только для GTA VC, на основе Plugin SDK от DK22Pac.
Кому интересно, весь исходный код находится здесь
И на Github
Нужно поместить все файлы с расширением .lua в папку lualoader, которую нужно создать в корневой папке игры. Файл plugin.VC.asi нужно поместить в корень игры.
Если что-то не работает, то ошибка запишется в лог-файл, находящийся в папке lualoader.
Плагин работает только с версией игры 1.0.
Рассмотрим как работает пара функций.
require("lualoader/mod")
function main()
while true do wait() -- задержка
player = findplayer() -- получаем игрока
if Keypress("VK_H") -- если нажата клавиша H
then x,y,z = getcoordinates_on_y(player, 5) -- получаем текущие координаты игрока
car = Createcar("MODEL_PCJ600", x, y, z) -- создаём мотоцикл
Giveweaponped(player, 600, "uzi") -- и даём педу оружие.
wait(300)
end
end
end
При нажатии клавиши “H” создается мотоцикл, а игроку даётся оружие — “Узи”.
Всего более 230 функций. Можно писать даже целые миссии.
В группе ВК есть подробная информация о скриптах и функциях.