SA-MP Forums Archive
Buttons - 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: Buttons (/showthread.php?tid=416072)



Buttons - DLR - 15.02.2013

I've had a look at Yom_Buttons and another one but they don't have the ability to set the VW or Interior of a button which kinda sucks if using the same interior for a couple things.
I attempted to update Yom_Buttons to use CreateDynamicObject and have the VW and Interior changable but I wasn't able to get it working properly

Does anybody know where to find a decent button script with VW support? Thanks.


Re: Buttons - DLR - 15.02.2013

Managed to edit it so that the button object only spawns on certain VWs using CreateDynamicObject. in the OnPlayerPressButton i've just added a simple check for the VW.

This does work, almost exactly how I want it. The only difference is that the player still does the animation.