[FilterScript] Attach objects to vehicles dynamically - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Attach objects to vehicles dynamically (
/showthread.php?tid=376910)
Attach objects to vehicles dynamically (0.3e Editor) -
Siralos - 12.09.2012
Hi,
This is my first 'serious' release and may have some glitches that I will gladly fix in future versions.
Don't be too mean to me!
Quote:
This system allows you to add any model to your vehicle, edit it with the 0.3e object position/rotation editor and attach them to the vehicle.
This system is currently not 'saving' the objects, you can do it by saving the values passed to 'AttachObjectToVehicle' onto your preferred storage system.
I created two pretty self-explanatory commands:
/attachobject [object model] [SAMP Car ID]
/deleteobject [arrayid] [SAMP Car ID]
If you don't know the SAMP ID of the car, just enter the car and write /mycarid
Hope you like the system, just let me know if you find some bugs/improvements, as I will be using this in my server also.
|
Examples of objects you can add:
Neon tubes: 18647 to 18652

Police lights: 18646
Taxi signs: 19308 to 19311

Car bullhorns: 19314
Hotdog: 19346
Credits to ****** for:
Plugins: sscanf
Includes: YSI (y_commands / y_master)
Pastebin
Compiled FS
sscanf plugin
YSI libraries
Re: Attach objects to vehicles dynamically -
God'Z War - 27.09.2012
Nice
Re: Attach objects to vehicles dynamically -
Eugene. - 08.10.2012
Is good but there is any way I can get the neon cooronates to use it for a command ?
Re: Attach objects to vehicles dynamically -
Elegance - 10.10.2012
Dont work on me :S Everything is fine as I see but just the commands dont work on my server :S
Re: Attach objects to vehicles dynamically -
Beckett - 31.05.2013
Doesnt work at all on my server & on a test one.
Re: Attach objects to vehicles dynamically -
RenovanZ - 31.05.2013
Quote:
Originally Posted by DaniceMcHarley
Doesnt work at all on my server & on a test one.
|
I trying it in my localhost server doesnt work, but its work in my friend's server.
Re: Attach objects to vehicles dynamically -
RenovanZ - 01.06.2013
I've found the bug that caused object wont attached (OnPlayerEditObject not called)
The problem is, if you load any
FILTERSCRIPT with
Streamer Include (by Inconigto on my case) on it, you must unload that filterscript and the script will workfully.
Re: Attach objects to vehicles dynamically -
Pr0GreSiVe - 23.08.2013
When i restart my server all car objects gone....
How i can keep it save it when i restart server ?
Re: Attach objects to vehicles dynamically -
Micsi - 23.08.2013
Very Nice!

Rep!