LUA Coding
Last updated
Last updated
Explaining:
redEngine uses LUA for things such as: Menus, Triggers, etc
Using LUA you can do multiple things: Teleport, spawn objects, make menus...
Most servers have decent anticheats, so most of this scripts will probably get you banned. This is only a base.
SetEntityCoords(entity, x, y, z, ...)
SetEntityHealth(ped, amount)
CreateObject(modelHash, position, networked)
modelHash: All hashes here
position: Where to spawn it (X,Y,Z coords)
networked: If true others can see it.
local function AskName()
local input = KeyboardInput("What is your name?", "", 30)
utils.log("You typed: " .. input)
end
"What is your name?" --> The question shown to the player
"" --> Default text
30 --> Max number of characters allowed
DrawTxt("Your text", y, rgb, color, scale)
AttachEntityToEntity(object, ped, bone, pos, rot, ...)
local pages = {
["Teleport"] = function()
gui.button("Go to Hospital", TeleportToHospital)
end,
["Trolling"] = function()
gui.button("Suicide", Die)
gui.button("Spawn Washer", SpawnWasher)
end
}
Most servers have decent anticheats, so most of this scripts will probably get you banned. This is only a base.