Seat getDriver() always returns a driver
💬 General•Updated 2 days ago•0 views
The returned value is an entity object that stays truthy - check ent:isValid() instead of just truthiness. For the driver's aim position use Player:getEyeTrace(…
Why does seat:getDriver() always evaluate truthy
The returned value is an entity object that stays truthy - check ent:isValid() instead of just truthiness. For the driver's aim position use Player:getEyeTrace() which returns a TraceResult.