SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/05/2017, 07:55 AM   #1
ShockGaming
Little Clucker
 
Join Date: Sep 2013
Posts: 12
Reputation: 13
Default Text on vehicles

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!
ShockGaming is offline   Reply With Quote
Old 23/05/2017, 07:58 AM   #2
Loinal
Gangsta
 
Loinal's Avatar
 
Join Date: Feb 2016
Posts: 817
Reputation: 9
Default Re: Text on vehicles

Quote:
Originally Posted by ShockGaming View Post
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
http://forum.sa-mp.com/showthread.php?t=624101
__________________
Loinal is offline   Reply With Quote
Old 23/05/2017, 09:11 AM   #3
ShockGaming
Little Clucker
 
Join Date: Sep 2013
Posts: 12
Reputation: 13
Default Re: Text on vehicles

Quote:
Originally Posted by Loinal View Post

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?
ShockGaming is offline   Reply With Quote
Old 23/05/2017, 10:17 AM   #4
Loinal
Gangsta
 
Loinal's Avatar
 
Join Date: Feb 2016
Posts: 817
Reputation: 9
Default Re: Text on vehicles

Quote:
Originally Posted by ShockGaming View Post
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
__________________
Loinal is offline   Reply With Quote
Old 23/05/2017, 10:41 AM   #5
YouHack
Huge Clucker
 
Join Date: Jan 2017
Posts: 273
Reputation: 22
Default Re: Text on vehicles

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
YouHack 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
Can I add text on vehicles? swat365 Scripting Help 3 08/04/2012 11:42 AM
[BUG] Text labels not visible with RC vehicles Elorreli Scripting Help 0 08/03/2012 04:27 PM
Drawing text on the screen and Vehicles in FS Ihsan_Cingisiz Help Archive 3 30/05/2010 03:19 PM
[Not Fixed] 3D Text on vehicles Futurezx Help Archive 5 18/05/2010 04:09 PM


All times are GMT. The time now is 12:10 PM.


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