Jump to content

justn

Members
  • Posts

    527
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by justn

  1. Okay, can anyone help me with adding more locations for marker1 and getCar ? ^.^ Code: addEventHandler ( "onResourceStart", getRootElement(), function ( started ) getCar = createVehicle ( 411, 2062.91138, -1570.18054, 12.95983, 0, 0, 272 ) startBlip = createBlipAttachedTo ( getCar, 12 ) Marker1 = createMarker ( 2062.82886, -1568.31702, 12.43865, "cylinder", 2, 0, 0, 255, 85 ) setVehicleLocked ( getCar, true ) setElementFrozen ( getCar, true ) setVehicleDamageProof ( getCar, true ) exports["TopBarChat"]:sendClientMessage ("Car Jacker: Go get the car at the 'C' blip on the radar",root,0,0,255,true) end )
  2. Haha, i realized that when I was gonna test the script.
  3. Hm, this ? addEventHandler ( "onMarkerHit", root, function ( hitElement, matchingDimension, thePlayer ) if source == Marker1 then warpPedIntoVehicle( thePlayer, getCar ) end end )
  4. PROBLEM ON LINE 30-36, When i hit the marker nothing happens Server.lua: addEventHandler ( "onResourceStart", getRootElement(), function ( started ) getCar = createVehicle ( 411, 2062.91138, -1570.18054, 12.95983, 0, 0, 272 ) startBlip = createBlipAttachedTo ( getCar, 12 ) Marker1 = createMarker ( 2062.82886, -1568.31702, 12.43865, "cylinder", 2, 0, 0, 255, 85 ) setVehicleLocked ( getCar, true ) setElementFrozen ( getCar, true ) setVehicleDamageProof ( getCar, true ) exports["TopBarChat"]:sendClientMessage ("Car Jacker: There's a car on the radar, go to the 'C' blip to get it.",0,0,255) end ) function onEnter(thePlayer, seat) if ( getElementType ( getCar ) == "vehicle" ) and ( getElementModel ( getCar ) == 411 ) then Marker = createMarker ( x, y, z ) Blip = createBlipAttachedTo ( Marker, 12 ) exports["TopBarChat"]:sendClientMessage ("Car Jacker: Go to the blip on the marker to get money", thePlayer, 0, 0, 255) end end addEventHandler("onVehicleEnter", getRootElement(), onEnter ) function hitit(thePlayer, hitElement) if getElementType(hitElement) == "player" and (hitElement == thePlayer) then local money = math.random ( 500,800 ) givePlayerMoney ( thePlayer, money ) end end addEventHandler("onMarkerHit", getRootElement(), hitit ) addEventHandler ( "onMarkerHit", root, function ( thePlayer, hitElement ) if source == Marker1 and thePlayer == hitElement then warpPedIntoVehicle( thePlayer, getCar ) end end )
  5. justn

    DayZ

    But maybe someone will find who will do it for free. https://wiki.multitheftauto.com/wiki/Main_Page Learn how to script it yourself.
  6. justn

    DX HUD

    ^.^ Nice script.
  7. justn

    solved

    Script working just the way i want it, Thanks @IIYAMA and @CVC
  8. Lol I was in the team and thanks ! I replaced LocalPlayer with localPlayer and it worked, thanks to you and sam1ler <3 I appreciate the help
  9. Got 2 errors in debugscript. WARNING: Infernus/client.lua:3: Bad argument @ 'getPlayerTeam' [Expected player at argument 1, got nil] WARNING: Infernus/client.lua:3: Bad argument @ 'getTeamName'
  10. Here you go. "Miley Cyrus" description="Twerk" type="script" version="1.3" />
  11. You know this has nothing to do with 'Occupations' and stuff right? All I want is if the player is in the team. he will be able to use the command and get a infernus mod
  12. e.e Am I gonna get actual help or what?
  13. function onResourceStart() if (getPlayerTeam(localPlayer) == "New World Order") then txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( dff, 411 ) end end addCommandHandler( "infernus", onResourceStart) I want if player in team 'New World order' and he do command, it will give him infernus
  14. Problem: The player who has his name as 'Test' will get a custom infernus mod, but the problem is, whenever i put my name as Test, the infernus mod doesn't change, can you tell me the problem ? Thanks ! CODE: function onResourceStart() if (getPlayerName(r) == "Test") then txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( dff, 411 ) end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart)
  15. Hey guys, I'm gonna show you how to make resources start everytime your server starts.. so follow these steps ! Instructions 1. Go To Your MTA Server files. 2. Go In \mods\deathmatch 3. Open mtaserver.conf <?xml version="1.0" encoding="utf-8" ?> Default MTA Server 22003 32 1 22005 1 8 20 1 1.3.4 1 0 medium 100 1500 500 500 1000 100 0 0 150 0 server-id.keys logs/server.log logs/server_auth.log logs/db.log acl.xml logs/scripts.log 0 0 60 0 0 1 4 backups 3 5 "admin" startup="1" protected="0" /> "defaultstats" startup="1" protected="0" /> "joinquit" startup="1" protected="0" /> "mapmanager" startup="1" protected="0" /> "parachute" startup="1" protected="0" /> "resourcebrowser" startup="1" protected="1" default="true" /> "resourcemanager" startup="1" protected="1" /> "spawnmanager" startup="1" protected="0" /> "webadmin" startup="1" protected="0" /> "scores" startup="1" protected="0" /> 4. Go to where you see and stuff.. 5. add this code under it "scriptName" startup="1" protected="0" /> NOTE: Some of your mtaserver.conf file does not look like this, this is because i made my file shorter P.S: "scriptName" is the name of your resource.
  16. justn

    About mapping...

    Don't think it has a script like that :L
  17. justn

    Some questions

    Once the paypal account is made, you can pay. but you just can't recieve payments.
×
×
  • Create New...