for i,v in pairs(Data)do
print(v["Arrestee"])
if v["Arrestee"] == RequestingPerson then
print("its him")
else
print("not him")
end
end
When I do lua print(v["Arrestee"]) it prints the correct userID, when I try to compare it with if v["Arrestee"] == RequestingPerson then, it doesnt run, it insteads goes to the else. Even though requestingPerson and the print(v[“Arrestee”]) are the same, its acting as if it is not.
One was a “string”, and another was a “number”, I used tostring() or tonumber()
to change them to match which I could then check to see if they matched.