LUA Coding
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.
Teleporting
SetEntityCoords(entity, x, y, z, ...)Health
SetEntityHealth(ped, amount)Spawn an Object
CreateObject(modelHash, position, networked)modelHash: All hashes here
position: Where to spawn it (X,Y,Z coords)
networked: If true others can see it.
Ask for Input
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
Draw text on screen
DrawTxt("Your text", y, rgb, color, scale)Attach Prop to Player
AttachEntityToEntity(object, ped, bone, pos, rot, ...)Creating Pages on your Menu
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.
Last updated
