[HELP] Why isn't 1 == 1?

Hi!

I’m having a weird issue, where 1 does not seem to be 1…
Lua doesn’t have different data types, does it?

I hope you can help me somehow

event params are sometimes read as strings, instead of numbers.
try converting source to a number, before using it, or try to check the param type of your vars. :

local src = tonumber(source)

or

print(type(source))
print(type(firstPlayer))

Thanks a lot!
I thought that lua doesnt have specific data types.

GetPlayer() returns a table of Strings, so i had to parse firstPlayer