SA-MP Forums Archive
[CLIENT BUG] Enter Vehicles with attached Objects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [CLIENT BUG] Enter Vehicles with attached Objects (/showthread.php?tid=330894)



[CLIENT BUG] Enter Vehicles with attached Objects - BloodyEric - 02.04.2012

Hey,

I found a little bug: The player wont enter a vehicle if it has an object attached to itself. It just runs from door to door and back, "thinking" that the way is blocked. When removing the object it works fine. Here is the code:

PHP Code:
            SetPVarInt(playerid,"MyFPObject",CreateObject(playerid,19300,0,0,0,0,0,0));
            
AttachObjectToPlayer(GetPVarInt(playerid,"MyFPObject"),playerid,0,0,0.7,0,0,0); 



Re: [CLIENT BUG] Enter Vehicles with attached Objects - freddy smyth - 03.04.2012

I think you need to make your script remove the objects upon entering a car, but anyway, I swear i've entered a vehicle before without such measures.


Re: [CLIENT BUG] Enter Vehicles with attached Objects - MP2 - 03.04.2012

It's because the object has collision.


Re: [CLIENT BUG] Enter Vehicles with attached Objects - BloodyEric - 03.04.2012

Quote:
Originally Posted by freddy smyth
View Post
I think you need to make your script remove the objects upon entering a car, but anyway, I swear i've entered a vehicle before without such measures.
Did you have object 19300 attached to the player?


Re: [CLIENT BUG] Enter Vehicles with attached Objects - CyNiC - 03.04.2012

If you want a tip, use the object model 1007, it's non-solid and invisible.


Re: [CLIENT BUG] Enter Vehicles with attached Objects - BloodyEric - 03.04.2012

Thank you very much, problem solved.