local vkeys = require 'vkeys'
local memory = require 'memory'
local wallhack = false
function main()
while not isSampAvailable() do wait(100) end
while true do wait(0)
if wasKeyPressed(vkeys.VK_F9) then
wallhack = not wallhack
if wallhack then
nameTagOn()
addOneOffSound(0, 0, 0, 1139)
printString("WallHack ~g~ON", 500)
else
nameTagOff()
addOneOffSound(0, 0, 0, 1139)
printString("WallHack ~r~OFF", 500)
end
end
end
end
function nameTagOn()
sSp = sampGetServerSettingsPtr()
memory.setfloat(sSp + 39, 1200)
memory.setint8(sSp + 47, 0)
memory.setint8(sSp + 56, 1)
end
function nameTagOff()
sSp = sampGetServerSettingsPtr()
memory.setfloat(sSp + 39, 25.5)
memory.setint8(sSp + 47, 1)
memory.setint8(sSp + 56, 1)
end