Jump to content

Plate vehicle


xXGhostXx

Recommended Posts

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
Link to comment
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
Link to comment
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 !

Link to comment
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
)

 

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

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