AttachedObjects disappearing when exiting a vehicle - 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: AttachedObjects disappearing when exiting a vehicle (
/showthread.php?tid=581492)
AttachedObjects disappearing when exiting a vehicle -
HarrisonC - 13.07.2015
Hi All,
Has anyone experienced an issue where their attached objects disappear when they exit a vehicle?
I haven't found anything in my script that would cause this to happen explicitly with RemovePlayerAttachedObject(playerid, index) and cannot seem to resolve this issue.
I have even stored the SetPlayerAttachedObject data in PVars and created a method that is called at the end of OnPlayerStateChange which will RemovePlayerAttached & reattach it with the saved data but it still disappears.
Any advice?