💬

Community answer

Collected from the ACE community Discord archive around 2022-12-26. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Seat getDriver() always returns a driver

💬 GeneralUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.