LuaLoader is an analogue of Moonloader, only for GTA VC, based on Plugin SDK from DK22Pac.
Who cares, the entire source code is here And on Github
You need to place all files with the .lua extension in the lualoader folder, which you need to create in the root folder of the game. The plugin.VC.asi file must be placed in the root of the game. If something does not work, then the error will be written to the log file located in the lualoader folder.
The plugin only works with version 1.0 of the game.
Let's see how a couple of functions work.
require("lualoader/mod")
function main() while true do wait() -- delay player = findplayer() -- get player if Keypress("VK_H") -- if the H key is pressed then x,y,z = getcoordinates_on_y(player, 5) -- get 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 you press the "H" key, a motorcycle is created, and the player is given a weapon - "Uzi". More than 230 functions in total. You can even write entire missions. The VK group has detailed information about scripts and functions.