Where in the autorun folder did you put it: client, server, or just in the folder?
Hold on, I’m gonna test it myself.
Putting it in lua/autorun seemed to give the intended effect, however it came with a side-effect: instead of getting stuck in the ceiling, you’ll get stuck in the ground. I’m gonna see if I can modify the script so that that doesn’t happen.
Move the script into lua/autorun, and replace the current code with the following:
not ent:IsValid() then
not ply:IsValid() then
ent:GetClass() == “prop_vehicle_prisoner_pod” then
local ang = ply.PhxChairAng
local pos = ang:Forward() * 50 + ent:GetPos()
ang.p = ent:GetAngles().p
ang.r = ent:GetAngles().r
pos.z = ent:GetUp().z * -10 + ent:GetPos().z + 10
not ply.PhxChairAng then
for k, v in pairs(player.GetAll()) do
if v:InVehicle() then
if not v.PhxVehicle then
v.PhxVehicle = v:GetVehicle()
v.PhxChairAng = v:GetAimVector():Angle()
if v.PhxVehicle then
v.PhxVehicle = nil
There’s something funny about the script, though.
For some reason, whoever wrote it wanted it to only affect the airboat seat, and two of the three PHX car seats.
Alright, edited the script AGAIN. This time, it should affect ALL vehicles (with the exception of jeeps, airboats, and any vehicles derived herein).