Check if a vehicle's trunk is open

How would I go about doing this? I’ve tried IsVehicleDoorFullyOpen and it didn’t work, it returned false every time

Nevermind, I found this:

GetVehicleDoorAngleRatio(vehicle,5) ~= 0 --meaning trunk door is open (5 is trunk door)