Jump to content

Plate vehicle


xXGhostXx

Recommended Posts

Posted (edited)

Hi guys !

What is problem ?

I want show plate vehicle on click vehicle !

function showpelak ()
	local noclick
	local carSelect
	outputChatBox("#f2e345[Vehicle]: "..getVehiclePlateText ( carSelect ), 50, 164, 29, true)
	noclick = nil
end
addEventHandler("OnClientClick", showpelak)

Please answer me problem !

@iMr.WiFi..!

Edited by xXGhostXx
Posted
addEventHandler ( "onClientClick", getRootElement(), 
	function ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
		if( button == "right" )then
			if( state == "down" )then
				if( getElementType( clickedElement ) == 'vehicle' )then
					outputChatBox("#f2e345[Vehicle]: "..getVehiclePlateText ( clickedElement ), 50, 164, 29, true)
				end
			end
		end
	end
)

 

  • Haha 1

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
10 minutes ago, iMr.WiFi..! said:

addEventHandler ( "onClientClick", getRootElement(), 
	function ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
		if( button == "right" )then
			if( state == "down" )then
				if( getElementType( clickedElement ) == 'vehicle' )then
					outputChatBox("#f2e345[Vehicle]: "..getVehiclePlateText ( clickedElement ), 50, 164, 29, true)
				end
			end
		end
	end
)

 

Not work !

Posted
16 minutes ago, xXGhostXx said:

Not work !

You need to right click on vehicle to get outputChatBox

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
43 minutes ago, iMr.WiFi..! said:

You need to right click on vehicle to get outputChatBox

How to set left click on vehicle for get outputChatBox

 

46 minutes ago, iMr.WiFi..! said:

You need to right click on vehicle to get outputChatBox

Thanks !

i Liked You ❤️

Posted
4 hours ago, xXGhostXx said:

How to set left click on vehicle for get outputChatBox

 

addEventHandler ( "onClientClick", getRootElement(), 
	function ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
		if( button == "left" )then
			if( state == "down" )then
				if( getElementType( clickedElement ) == 'vehicle' )then
					outputChatBox("#f2e345[Vehicle]: "..getVehiclePlateText ( clickedElement ), 50, 164, 29, true)
				end
			end
		end
	end
)

 

                                                         هل ساعدتك في شئ ؟؟؟؟

                                                Mmpe7Jm.gif

                                                   latest?cb=20170707023932                 

                                            KillerX#9078

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...