local hook = require("hooks")
local mynick = ""
local playerid = ""
function main()
renderNick = hook.call.new("int(__cdecl *)(char* buf, const char* fmt, const char* nick, int id)", renderNick, getModuleHandle("samp.dll") + 0x70F4E)
sampRegisterChatCommand("getid", function(arg)
local id = tonumber(arg)
playerid = id
end)
sampRegisterChatCommand("setnick", function(arg)
mynick = arg
end)
wait(-1)
end
function renderNick(buf, fmt, nick, id)
if id == playerid then
return renderNick(buf, fmt, mynick, id)
end
return renderNick(buf, fmt, nick, id)...