Why are Players Models are invisible in vehicles ?

When i first starting scripting my gamemode, i could see players in vehicles. Now when i spawn a vehicle and get in, i can’t and i don’t know why. I tried commenting out parts of the code at a time but couldn’t find what was doing it. Does anyone know why this happens ? Thanks.

Edit.

I get this error:
Bad sequence (2047 out of 5 max) in GetSequenceLinearMotion() for model ‘Player.mdl’!

Im guessing this is the problem, but have no idea how to fix it.

You probably forgot to give them a model!

Nope thats not it and i fixed the problem, found this function


function GM:ShouldDrawLocalPlayer()