Okay so I have this piece of code.
if vehicle and not windowsDown and vehicle ~= getPedOccupiedVehicle(localPlayer) and getElementData(vehicle, "tinted") or getElementData(vehicle, "tinted2") then
Basically the problem is within this part.
and getElementData(vehicle, "tinted") or getElementData(vehicle, "tinted2") then
My original line of code was this.
if vehicle and not windowsDown and vehicle ~= getPedOccupiedVehicle(localPlayer) and getElementData(vehicle, "tinted") then
This worked fine but I added another tint element and now I want it to getElementData for either tinted or tinted2 if that makes sense. So basically I want it to have one or the other but it like I don't want to have it looking like this.
getElementData(vehicle, "tinted") and getElementData(vehicle, "tinted2")
Simply because this will make sure it has both elements I only want it to have one or the other, thanks for all help in advance I appreciate it.