SA-MP Forums Archive
Text on vehicles - 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: Text on vehicles (/showthread.php?tid=634636)



Text on vehicles - ShockGaming - 23.05.2017

Hello Everyone!

I'm quite new to scripting on SAMP and have a quick question. If i wanted to attach text to a vehicle, what steps would i have to take? Im looking to add the word SHERIFF on a few of my faction vehicles. Does my sql database affect anything?

This is what im attempting to make it look like: http://i.imgur.com/I4AAMqd.jpg ((Did it in Texture Studios, dont actually know how to get those coordinates or attach it))

Thank you!


Re: Text on vehicles - Loinal - 23.05.2017

Quote:
Originally Posted by ShockGaming
Посмотреть сообщение
Hello Everyone!

I'm quite new to scripting on SAMP and have a quick question. If i wanted to attach text to a vehicle, what steps would i have to take? Im looking to add the word SHERIFF on a few of my faction vehicles. Does my sql database affect anything?

This is what im attempting to make it look like: http://i.imgur.com/I4AAMqd.jpg ((Did it in Texture Studios, dont actually know how to get those coordinates or attach it))

Thank you!
View this
https://sampforum.blast.hk/showthread.php?tid=624101


Re: Text on vehicles - ShockGaming - 23.05.2017

Quote:
Originally Posted by Loinal
Посмотреть сообщение
Alright, got that down and the script exported, in my roleplay script i would like to only attach it to 1 vehicle, how would that be done?


Re: Text on vehicles - Loinal - 23.05.2017

Quote:
Originally Posted by ShockGaming
Посмотреть сообщение
Alright, got that down and the script exported, in my roleplay script i would like to only attach it to 1 vehicle, how would that be done?
Type /dmc then you will find text on vehicle


Re: Text on vehicles - YouHack - 23.05.2017

Learn about those:
CreateObject ( must be CreateDynamicObject )
SetObjectMaterialText ( must be SetDynamicObjectMaterialText )
AttachDynamicObjectToVehicle ( needs streamer )
use them after creating a car, so it will always have that text