SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/05/2019, 08:05 PM   #1
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Multiple Objects Attached to Vehicles at the Same Time

According to the title of this thread, I am in need of a filterscript which attaches multiple objects at the same time, to the vehicle you're sitting in when you type a command. I already have a filterscript that attaches one object to the vehicle, but when it comes to mapping and attaching objects to cars and players, I'm a noob. I know how to get the coordinates and how to add the objects to the vehicle I'm sitting in when editing the offset of those objects, but how do I add more objects at the same time? Similarly to if I type /towlights, I'm able to add the object ID: 19294 (Click here to see what it looks like in case you're wondering) to the top of the towtruck, but if I'd like to add more of this specific object, what do I do?

If any of you got the script or at least a base/scratch copy of the format of it or how it's supposed to be, may I please have it? Thanks! Would help me a lot!
KevTheJoker is offline   Reply With Quote
Old 15/05/2019, 11:37 PM   #2
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Re: Multiple Objects Attached to Vehicles at the Same Time

52 views. No response lol.. Sorry for the bump, but.. does anyone know about this feature? Been waiting for the past few hours, and there isn't a "yes" or "no" Lmaoo
KevTheJoker is offline   Reply With Quote
Old 16/05/2019, 08:26 AM   #3
Threshold
High-roller
 
Threshold's Avatar
 
Join Date: Nov 2012
Location: Australia
Posts: 3,125
Reputation: 529
Default Re: Multiple Objects Attached to Vehicles at the Same Time

What exactly are you having issues with? If you can attach one object, what is stopping you from attaching another?

https://wiki.sa-mp.com/wiki/AttachObjectToVehicle
__________________


Kar's Cops and Robbers 2020
Threshold is offline   Reply With Quote
Old 16/05/2019, 01:09 PM   #4
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Re: Multiple Objects Attached to Vehicles at the Same Time

I know how to do that but how do I attach multiple objects at the same time? When I type a command, for e.g. /towlights, I'm able to attach one object, but if I'd like it to attach two of that object at different parts of the vehicle, how do I do that?
KevTheJoker is offline   Reply With Quote
Old 16/05/2019, 01:27 PM   #5
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 271
Reputation: 27
Default Re: Multiple Objects Attached to Vehicles at the Same Time

Call AttachObjectToVehicle multiple times?
Plastikmensch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing attached objects on vehicles Glenn332 Scripting Help 0 22/07/2015 11:54 AM
How to edit attached objects to vehicles? IulyZNX Scripting Help 1 04/01/2015 09:01 PM
[CLIENT BUG] Enter Vehicles with attached Objects BloodyEric Scripting Help 5 03/04/2012 05:32 PM
[BUG] Objects attached to vehicles Kyle_Olsen Scripting Help 0 18/03/2012 11:10 AM
[Tutorial] [FIX] - un-attached objects on vehicles JernejL Tutorials 7 20/11/2011 06:32 PM


All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.