Change Trailer Livery

Hello, I am trying to make a script for my server that allows me to change the livery of a trailer. Since you cannot drive trailers I found it to be a lot harder since you can’t just get the vehicle the player is in. Also GetClosestVehicle doesn’t seem to be working for anyone atm. anyone have a solution for changing the nearest trailer’s livery?