Jump to content

carvalhosgamer

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by carvalhosgamer

  1. thank you for your attention!! and sorry my English its not too good yet
  2. ok.. but, if i need destroy this car later? in other function? may i? Thank you!
  3. how, have any example on wiki, thanks i'm noob with Lua
  4. Hello guys, i tried all night to understand my code about CreateVehicle, i'm working with Server Script, CreateVehicle and Warp, well, i want to make the localplayer create own vehicle, now, i have a problem i create my car, but the other guy creates his car then my car destroy. please hep me! thats my code: --Server Side marker = createMarker(.....) function CreateVeh(thePlayer) if (thePlayer) then heli = createVehicle( 425, 234, 1967, 17, 0,0, 90) warpPedIntoVehicle(thePlayer, heli, 0 , true) end end addEventHandler("onMarkerHit" , marker, CreateVeh) PLEASE HELP ME! THANKS!
  5. I Did, Works very well, but if you can help me one more thing about (if/else) so, I need test if only bus vehicle touch the marker, not other car and without car, just bus vehicle 431, i've been tried like bus1Ids = { [431]=true } bus= createVehicle( 431, 1270, -1816, 13.5, 0,0, 175) // if (bus1Ids [getElementModel ( source )] ) then touch the marker end but, its not work, please help me thanks!
  6. wow, Great suggestion, I did not think about i'll Try This! Thank You!
  7. Hello Guys, I'm trying to do a Bus Driver Job, but I Have a big problem, like this: I Wannna make the local Player destroy own marker, but when I pass over of the marker, the marker of the other guy is gone too! Check this example! Cliente Side localPlayer = getLocalPlayer() function Job() bus1 = createMarker(1234, -1845,15, "checkpoint", 4.0, 0, 0, 255, 255) blip = createBlipAttachedTo( bus1, 41 ) addEventHandler("onClientMarkerHit", bus1, BusJob) end fuction BusJob(hitPlayer) if hitPlayer == localPlayer then if isElement(trampobus1) then destroyElement(bus1) end end end Sorry, my english is not too good, but i hope to explain my problem Thank You Very Much!!!
  8. You are awesome!!! Thank you very very Much, works perfectly!
  9. Great, thank you, its work like explosion, but i need stop the vehicle, like an bus on bus station, one marker and brake de velocity thank you very much for response
  10. hi, guys, i have tried all night long about this bug in my code... I need the player trouch the marker with car and brake immediately , that is my code: marker = createMarker(1219,-1812,13, "cylinder" , 4.0, 255, 255, 0, 170) blip = createBlipAttachedTo(marker, 55) addEventHandler("onClientMarkerHit",marker, action) function action() -- Action end the player's car touchs the marker and brake the car. please, i need you help!, some function in wiki, or example thats help me a lot thank you!
×
×
  • Create New...