For some reason, without the 'UnsetKnownTitle' method, I have to keep adding the title to myself. With it doing that, it doesn't show that I have the title. :/
My code:
Code:
function OnEvents(event, plr, msg, _, lang)
if(msg == "test") then
if(plr:HasTitle(42)) then
print("You have this title!")
else
print("You don't have this title!")
end
end
end
RegisterServerHook(18, OnEvents)
I don't see anything wrong in the C++ code. This is very interesting. :/