[Lua] Teleport script ready for use

Upload *YOUR* gamehacking tools/helpers here
Post Reply
User avatar
hotbabyx
Novice Cheater
Novice Cheater
Posts: 22
Joined: Thu May 08, 2025 1:57 pm
Reputation: 7

[Lua] Teleport script ready for use

Post 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]
Attachments
Teleport.CT
(1.01 KiB) Downloaded 29 times

Aleksey0104
Noobzor
Noobzor
Posts: 6
Joined: Wed Dec 15, 2021 1:35 pm
Reputation: 1

Re: [Lua] Teleport script ready for use

Post by Aleksey0104 »

not the best choice of hot keys
A bit of a misconception f5 is the breakpoint setting

Aleksey0104
Noobzor
Noobzor
Posts: 6
Joined: Wed Dec 15, 2021 1:35 pm
Reputation: 1

Re: [Lua] Teleport script ready for use

Post by Aleksey0104 »

in general everything is cool and simple

Aleksey0104
Noobzor
Noobzor
Posts: 6
Joined: Wed Dec 15, 2021 1:35 pm
Reputation: 1

Re: [Lua] Teleport script ready for use

Post by Aleksey0104 »

Thank you. Works great. But when disconnected, it continues to work.

User avatar
hotbabyx
Novice Cheater
Novice Cheater
Posts: 22
Joined: Thu May 08, 2025 1:57 pm
Reputation: 7

Re: [Lua] Teleport script ready for use

Post 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. :|

Post Reply

Who is online

Users browsing this forum: Baton, Google [Bot]