SA-MP Forums Archive
Need help with saving something - 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: Need help with saving something (/showthread.php?tid=457631)



Need help with saving something - arjanforgames - 12.08.2013

How can I save an attached object? So when the player logs back in, with his vehicle, the object gets automatically attached again.
So it's like saving the coordinates.


Re: Need help with saving something - Pupak - 12.08.2013

Save object ID, X offset, Y offset, Z offset, X rotation, Y rotation, Z rotation, then load that data and attach that object to vehicle under OnPlayerEnterVehicle callback.