Check if extra is toggled?

Hello!

Is there a way to check if an extra on a vehicle is toggled? Trying to use a script to detect if someone has an extra toggled, and doing a certain action if it is when a command is ran.

(i.e. turning on high-beams if extra 5 is enabled upon running the command)

Thanks!

Just found it, nevermind!

https://runtime.fivem.net/doc/natives/?_0xD2E6822DBFD6C8BD