Jump to content

monstergnom

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About monstergnom

  • Rank
    Square
  1. Yep, thats what i forgot =) ty mate
  2. Doesn't work It seems that I don't hit the marker => Are Markers possible @ interiors?
  3. Hey guys, I created a marker to port me into a casino. This works well. But now, I can't port myself out (with another Marker - in the casino ofc). Here's the code. I just can port myself out of the casino with /leave markerleave = createMarker( 2002.509765625,1016.2685546875,994.46875 ) function leaveCasino ( thePlayer ) setElementInterior ( thePlayer, 0, 2027.6220703125, 1007.2666015625, 10.8203125 ) end addEventHandler ( "onMarkerHit", markerleave, leaveCasino ) addCommandHandler("leave", leaveCasino) BTW: I see the Marker in the casino, but nothing happens if I walk into it. Gree
  4. and how can i shutdown helicopters? setHelicopterRotorSpeed (theVehicle, 0) doenst work, it gets this error: attempt to call global 'setHelicopterRotorSpeed'
  5. Why cars get removed after i spawn 2 others?? How can i block/deactivate this? Greets
  6. oh... okay now it works... tyvm Heres the working script: function EngineOff ( thePed ) local theVehicle = getPedOccupiedVehicle ( thePed ) setVehicleEngineState ( theVehicle , false ) outputChatBox("Engine is now off" , thePlayer) end addCommandHandler ( "engineoff", EngineOff ) function EngineOn ( thePed ) local theVehicle = getPedOccupiedVehicle ( thePed ) setVehicleEngineState ( theVehicle , true ) outputChatBox("Engine is now on" , thePlayer) end addCommandHandler ( "engineon", EngineOn )
  7. Hey guys, im trying to turn on/off the engine if im sitting in car - as driver... here my code: function EngineOff ( theVehicle, command ) setVehicleEngineState ( theVehicle , false ) outputChatBox("Engine is now off" , thePlayer) end addCommandHandler ( "engineoff", EngineOff ) function EngineOn ( theVehicle, command ) setVehicleEngineState ( theVehicle , true ) outputChatBox("Engine is now on" , thePlayer) end addCommandHandler ( "engineon", EngineOn ) wont work need help
  8. Ok, sorry =) Nah im not norwegian Im talking about this script: http://community.mtasa.com/index.php?p=resources&s=details&id=190, i just downloaded it and inserted it into the resources folder, but it wont work just this error i posted in the post above.
  9. ah okay thx =) now it works as well. BTW: Why doesnt slrfuel work for me? Server gets the error: error: .../mods/deathmatch/resources/slrfuel/Server_Petrol.lua:154 attempt to index field '?' What should i do? The Slrfuel thing isnt even shown on my interface
  10. Hello all, I want to shutdown the engine of the car when I'm going out. I used this script: function turnEngineOff ( theVehicle, leftSeat, jackerPlayer ) -- if it's the driver who got out, and he was not jacked, if leftSeat == 0 and not jackerPlayer then -- turn off the engine setVehicleEngineState ( theVehicle, false ) end end -- add 'turnEngineOff' as a handler for "onPlayerExitVehicle" addEventHandler ( "onPlayerExitVehicle", getRootElement ( ), turnEngineOff ) But it didn't work for me. I just searched the forum but didn't find anything... Greets
×
×
  • Create New...