Jump to content

Plate Vehicle


xXGhostXx

Recommended Posts

Posted

Hi guys !

Please fix my script for show plate car !

like : players in vehicle click on vehicle show plate !

function pelak(thePlayer)
    local mashin = getPedOccupiedVehicle(thePlayer)
	local pelak = getVehiclePlateText(mashin)
	if isPedInVehicle(thePlayer) then
	  outputChatBox("#00ff00Pelak In Veh "..pelak.." Mibashad!",thePlayer,255,255,255,true)
	else
	 outputChatBox("#ff0000[Error]:#ffffffShoma Dar Mashin Nistid!",thePlayer,255,255,255,true)
	end
end
addCommandHandler("pelak",pelak)

 

Posted

No, that's not what this section is intended for. You're supposed to try it, post your code if it doesn't work, describe what's wrong and then we can try and help you with it. You won't learn otherwise if you just copy & paste.

  • Like 1
Posted
19 minutes ago, MIKI785 said:

No, that's not what this section is intended for. You're supposed to try it, post your code if it doesn't work, describe what's wrong and then we can try and help you with it. You won't learn otherwise if you just copy & paste.

Please give me just this time :(

Posted (edited)

In the last 17 hours, you've made 5 topics and 3 of them provided you with fixed code, so don't pretend like it's "just this time." Please, for the sake of us all, get help from us to learn to script instead of leeching off the work of others. We're here to help, not work for you.

Please try it yourself just this time :(

Edited by MrTasty
  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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