Page 1 of 1

[Lua] Teleport script ready for use

Posted: Wed May 14, 2025 8:47 pm
by hotbabyx
Teleport Script:

only change the addresses if your address 2AC23981 add 0x before the address will be like this 0x2AC23981 - your address [player_base]+0C just past it like that and don't delete the " " marks and if you have a pointer just use the Print Offsets tool

Print Offsets:
viewtopic.php?f=23&t=34922

you can change the hotkeys if you like in the end of script
Spoiler
{$lua}
[ENABLE]



local xExpr = "Adress for x"
local yExpr = "Adress for y"
local zExpr = "Adress for z"


local savedPosition = {x = 0, y = 0, z = 0}


function savePosition()
savedPosition.x = readFloat(xExpr)
savedPosition.y = readFloat(yExpr)
savedPosition.z = readFloat(zExpr)

end


function loadPosition()
writeFloat(xExpr, savedPosition.x)
writeFloat(yExpr, savedPosition.y)
writeFloat(zExpr, savedPosition.z)

end


createHotkey(savePosition, VK_F5) -- you can change hot keys from here
createHotkey(loadPosition, VK_F6) -- you can change hot keys from here



[DISABLE]

Re: [Lua] Teleport script ready for use

Posted: Thu May 15, 2025 8:31 pm
by Aleksey0104
not the best choice of hot keys
A bit of a misconception f5 is the breakpoint setting

Re: [Lua] Teleport script ready for use

Posted: Thu May 15, 2025 8:32 pm
by Aleksey0104
in general everything is cool and simple

Re: [Lua] Teleport script ready for use

Posted: Fri May 16, 2025 7:18 pm
by Aleksey0104
Thank you. Works great. But when disconnected, it continues to work.

Re: [Lua] Teleport script ready for use

Posted: Sun May 18, 2025 9:05 am
by hotbabyx
Aleksey0104 wrote:
Fri May 16, 2025 7:18 pm
Thank you. Works great. But when disconnected, it continues to work.
You're welcome. :D You can change the hotkeys i made a note in script to change it as you like in the end of script but that when disconnected do you mean deactivate the script?
If you means this just close and open the cheat engine and look for your script maybe you use a globalalloc. :|