Jump to content

mars

Members
  • Posts

    29
  • Joined

  • Last visited

Details

  • Gang
    GameNet.fi

mars's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. mars

    job :(

    okay, but still the marker doesn't come up.
  2. mars

    job :(

    thank you ^^
  3. it is posible, you can change the outlook from vehicle's to another model. like a infernus to a bmw.
  4. mars

    job :(

    hey guys, i was trying to make a bus job right now i'm kinda addicted to scripting but i made this in like, idk, 1 min? but it doesn't work function startbus (thePlayer, command ) veh = getPedOccupiedVehicle ( thePlayer ) if (veh == 431) then my = createMarker ( -2196, 324, 34, "cylinder", 3, 255, 255, 0, 70 ) setElementVisibleTo ( my, getRootElement(), true ) setElementVisibleTo ( my, thePlayer, true ) outputChatBox ( "#FF0000[bus Companie] #00FF00get to the first station, dont get too late!", thePlayer, 255, 255, 255, true ) end end addCommandHandler("startbus", startbus) addEventHandler("startbus", getRootElement(), startbus) if i enter a vehicle, (bus) and i type /startbus , it should make a marker and say [bus Companie] go to the first station, dont get to late! but 1, the marker doesn't show up ^^'' and you can guess, 2. he doesn't say crap
  5. mars

    what the....[help]

    you can scream what ever you want but i'm a newb in lua and i do like it! now i got this: the problem is, it wont get deleted if the health of the car is less than 350.
  6. you should change outputConsol to outputChatBox. than they will be fixed.
  7. hey guys, ive been scripting a mission, but the vehicle doesn't get deleted with this. dylan2en helped me to make it alitle further, but now the vehicle wont get deleted. script: marky = createMarker ( -2642.5, 1375, 6, "cylinder", 1.5, 255, 255, 0, 30 ) function mission ( hitPlayer ) if (source == marky) then my = createMarker ( -1647, 1219, 6, "cylinder" , 4, 255, 255, 0, 30 ) setElementVisibleTo ( my, hitPlayer , true ) local MissionVehicle = createVehicle ( 401, -2639, 1371, 8 ) warpPedIntoVehicle ( hitPlayer , MissionVehicle ) blip = createBlip ( -1647, 1219, 4, 52, 2, 255, 0, 0, 255, 0, 99999.0, getRootElement() ) setElementVisibleTo ( blip, hitPlayer, true ) outputChatBox ( "#FF0000[Auto Seller Bob] #00FF00bring this car to otto's dont get to late.", getRootElement(), 255, 255, 255, true ) end end addEventHandler("onMarkerHit" , getRootElement(), mission) function Reward( hitPlayer ) if (source == my) then removePedFromVehicle( hitPlayer) destroyElement( MissionVehicle ) destroyElement( blip ) destroyElement( my ) givePlayerMoney(hitPlayer, 100000) outputChatBox ( "#00FF00WELL done, take this as a reward", getRootElement(), 255, 255, 255, true ) end end addEventHandler ("onMarkerHit" , getRootElement(), Reward)
  8. mars

    wtf?? [ help ]

    i'm not very good at scripting, can you maybe explain "attach the function just to this one marker, not to all elements (getRootElement())" alitle bigger? thank you
  9. mars

    wtf?? [ help ]

    haha i know about the get nick, i removed. i mixed 2 scripts, but can you explain abit more? i got this right now marky = createMarker ( -2642.5, 1375, 6, "cylinder", 1.5, 255, 255, 0, 30 ) function mission ( hitPlayer ) my = createMarker ( -1647, 1219, 6, "cylinder" , 4, 255, 255, 0, 30 ) --setElementVisibleTo ( myMarker, getRootElement ( ), false ) --setElementVisibleTo ( myMarker, hitPlayer , true ) local MissionVehicle = createVehicle ( 401, -2639, 1371, 8 ) warpPedIntoVehicle ( hitPlayer , MissionVehicle ) blip = createBlip ( -1647, 1219, 4, 52, 2, 255, 0, 0, 255, 0, 99999.0, getRootElement() ) --setElementVisibleTo ( blip, hitPlayer, true ) end addEventHandler ("onMarkerHit" , getRootElement(), mission)
  10. mars

    wtf?? [ help ]

    hey all, i wanted to make missions but its weird, i got the spawn, of the car. u get spawned in it. a blip is getting created, and a marker too. but when you hit the other marker, the server + your mta crashed and it doesn't give me a error is something, this is how far i am atm: mission = createMarker ( -2642.5, 1375, 6, "cylinder", 1.5, 255, 255, 0, 30 ) function mission ( hitPlayer ) getNickFromPlayer = ( hitPlayer ) if ( hitPlayer ) then myMarker = createMarker ( -1647, 1219, 6, "cylinder" , 4, 255, 255, 0, 30 ) --setElementVisibleTo ( myMarker, getRootElement ( ), false ) --setElementVisibleTo ( myMarker, hitPlayer , true ) local MissionVehicle = createVehicle ( 401, -2639, 1371, 8 ) warpPedIntoVehicle ( hitPlayer , MissionVehicle ) blip = createBlip ( -1647, 1219, 4, 52, 2, 255, 0, 0, 255, 0, 99999.0, getRootElement() ) --setElementVisibleTo ( blip, hitPlayer, true ) end end addEventHandler ("onMarkerHit" , getRootElement(), mission)
  11. mars

    need some help

    hey guys, i wanted to make a simple lock script, but i failed. it said setVehicleOverrideLock is a nil value. what is it suppose to be? hole script: function doToggleLock ( source, beep ) local theVehicle if ( getElementType(source) == "vehicle" ) then theVehicle = source end if ( getElementType(source) == "player" ) then theVehicle = getElementData ( source, "cl_ownedvehicle" ) end if ( theVehicle ) then if ( getVehicleOverrideLock ( theVehicle ) ~= 2 ) then setVehicleOverrideLock ( theVehicle, 2 ) end else setVehicleOverrideLock ( theVehicle, 1 ) end end function cl_PlayerJoin ( ) bindKey ( source, "l", "down", doToggleLock ) end o and my bind key aint working
  12. mars

    litle question

    okay thx ill give it a try.
  13. mars

    litle question

    hmm can any1 check if this is allright? the onPlayerJoin, i think its wrong. function positie ( source ) local acc=getPlayerAccount(source); setAccountData(acc,"posX",x); setAccountData(acc,"posY",y); setAccountData(acc,"posZ",z); end addEventHandler ("onPlayerJoin",getRootElement(),positie) thx.
  14. mars

    litle question

    hey guys ive got a litle question, i'm trying to make a position saver. but its kinda hard. can some1 give me a start please?^^, or something like a site where is standing how very junior in scripting ^^'' thx
  15. mars

    helpzor :(

    i got it right now.
×
×
  • Create New...