Jump to content

carvalhosgamer

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by carvalhosgamer

  1. Hello Guys, I'm studying MTA, and I have a problem with my code look this: thePed = createPed(12, 0,0,0 ) carIni = createVehicle ( 405, 133, 2218, 35.7,0,0, 180 ) warpPedIntoVehicle ( thePed, carIni ) setElementVelocity (carIni , 0, -0.1, 0) enyMarker = createMarker(141.8,1944,18, "cylinder" , 15.0, 0, 0, 0, 200) addEventHandler("onMarkerHit" , enyMarker, function() if getElementType(thePed) == "ped" and getPedOccupiedVehicle(thePed) then outputChatBox("sdsd") end end I need the condition of only ped touch the marker and do something only ped not the player Thanks!
  2. Hello!, please somebody can help me, what's Alhambra club id interior? or another dance club id thanks!
  3. thank you man, but how i do that? clean table?
  4. thank you very much! local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end addEventHandler ( "onClientGUIClick", options, function() if not ( guiGridListGetSelectedItem (options) == -1 ) then local value = guiGridListGetItemText (options, guiGridListGetSelectedItem(options), 1 ) end end)
  5. Ok, i got help with other thing thats my code: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end end How I capture the value from row? thanks
  6. hello, I'm Tryng many times to do one grid look this: local options= guiCreateGridList(0.01, 0.10, 1, 0.70, true, Window) local col1 = guiGridListAddColumn(options, "Los Santos" , 0.85) if (col1) then local row = guiGridListAddRow ( options) guiGridListSetItemText ( options, row, col1, "City 1", false, false ) end local col2 = guiGridListAddColumn(options, "San Fierro" , 0.85) if (col2) then local row2 = guiGridListAddRow ( options) guiGridListSetItemText ( options, row2, col2, "City 1", false, false ) end ok that's Works, But i need the the Column below each other, Vertical, not Horizontal Please, Help me! Thank you veru Much
  7. Sure!!, definitely! I Appreciate That! Thanks
  8. Great! Thank you very much. I'm using that, works perfectly
  9. owwww awesome!! Works perfectly thank you very much
  10. ok, thePlayer enters the vehicle for the first time and start the "onVehicleEnter" with message: "The Player Enters the Car" so, thePlayer out the vehicle and start "onVehicleExit" with message: "The Player is outr" ok, same thePlayer enters the vehicle again for second time, with message: "The Player enters the Car Again" you know, diferent messages "onVehicleEnter" Thanks
  11. No, the handler "onCVehicleExit" do other things, I want to do diferent thngs' in "onVehicleEnter" thanks for help
  12. I'm tryng put this conditional in this block carUsed = {} function inCar(thePlayer) if (carUsed[thePlayer]) then outputChatBox("Mesage!!!") carUsed[thePlayer] = false else outputChatBox("Mesage 222") end end addEventHandler("onVehicleEnter" , getRootElement() , inCar) When the player return to car , nothing happens, if I put the variable casUsed = false, block for everybody. not just to player somebody??? thanks
  13. Hello, Guys , somebody can help me with addEventHandler when thePlayer get in the car ,the handler "onVehicleEnter" start , like this: function inCar(thePlayer) -- Action 1 outputChatBox("Mesage!!!") end addEventHandler("onVehicleEnter" , getRootElement() , inCar) ok, that's work, but i want to make a diferent action, when the thePlayer get in the same car again! thanks!
  14. ok, theplayer got a car, the handler "onVehicleEnter" do something, for example outputChatBox("Text 1" ), ok, the player out of his vehicle and enter the his vehicle again, the handler do something new for example outputChatBox("Text 2" ) , thanks
  15. I tried this code, works perfectly, thank you!, but i have another problem with my code. i want to make one time the event, for example the player enters into the car , do something and get the car again do other things I have functions on "onVehicleEnter" look my code: function playerEnter(thePlayer) if getElementModel(source) == 431 then // Do Something one time end end addEventHandler("onVehicleEnter" , getRootElement(), playerEnter) thnaks
  16. lol, Problem man... look this: MarcadorBus1Car = createMarker(..) addEventHandler("onMarkerHit" , MarcadorBus1Car, function(thePlayer) if getElementType(thePlayer) == "player" and not getPedOccupiedVehicle(thePlayer) then local busao = createVehicle( 431, 1271, -1822, 13.5, 0,0, 175) warpPedIntoVehicle(thePlayer, busao, 0 , true) end end --///////////////////////////////////////// function qndSairBus1(thePlayer) if (thePlayer) then if getElementModel(source) == 431 then desBus1 = setTimer(destroiBus1, 5000, 1) end end end addEventHandler("onVehicleExit" , rootElement, qndSairBus1) function destroiBus1() if isElement(busao) then destroyElement(busao) end end The vehicle not destroy with local variable... helpe me please
×
×
  • Create New...