Jump to content

[Suggestion] Traffic signals


Ramiro duarte
 Share

Recommended Posts

Suggestion for (MTA, Forum, website): MTA


Suggestion: I suggest that it be on the server, a script in which placing a command, next to the person appears an object, that object is a traffic signal, like the traffic signal that is inside the trunk of the police car of LS , well that signal would be good that writing a command appears next to the person.


Why should this be added?: Yo opino que debería de agregarse eso para poder señalizar mejor el tráfico cuando hacemos una parada de tráfico, cuando hay un vehículo abandonado, etc.


Anything else you'd like to add?: Here I leave an example to create the script of what I speak:


function consoleCreateObject ( thePlayer, commandName )

  if ( thePlayer ) then

      local x, y, z = getElementPosition ( thePlayer ) -- get the player's position

      -- create a Object next to the player:

      local theObject = createObject ( 980, x + 2, y + 2, z, 0, 0, 0 )

      if ( theObject ) then -- check if the Obeject was created successfully

        outputConsole ( "Object created successfully", thePlayer )

      else

        outputConsole ( "Failed to create Object", thePlayer )

      end

  end

end

addCommandHandler ( "createObject", consoleCreateObject )



Here I leave the page of the MTA Wiki, where I found this, I leave in case you want to see more information:


https://wiki.multitheftauto.com/wiki/CreateObject

(Example 2 would be the best so that I worked)


(Forgive me if you do not understand something, it's that I speak in Spanish, and I'm translating with Google Translate, sometimes it does not translate well)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...