Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --hook.Add("Think",1,function() ??
- for k,v in pairs(player.GetAll()) do
- local ent = v:GetEyeTrace().Entity
- if v:KeyDown(IN_USE and ent:IsVehicle() then
- if v.mycar ~= ent then
- pirnt("hm")
- v.mycar = ent
- v.mycartime = CurTime()
- elseif v.mycar == ent and v.mycartime + 2 >= CurTime() then
- v.mycar:GetDriver():ExitVehicle()
- timer.Simple(0, function()
- v:EnterVehicle(v.mycar)
- v.mycar = NULL
- v.mycartime = 0
- end, v)
- end
- else
- v.mycar = NULL
- v.mycartime = 0
- end
- end
- --end) ??
Advertisement
Add Comment
Please, Sign In to add comment