Server Entity Vehicle:VC_isLocked()
1. Boolean Vehicle is locked.
concommand.Add("vehicle_togglegodmode", function() local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity if IsValid(ent) then if ent:VC_isLocked() then ent:VC_unLock() else ent:VC_lock() end else print("Invalid entity.") end print("Toggled vehicles locks.") end)