-
Posts
527 -
Joined
-
Last visited
-
Days Won
3
Everything posted by justn
-
Help please? :3
-
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 )
-
Haha, i realized that when I was gonna test the script.
-
Hm, this ? addEventHandler ( "onMarkerHit", root, function ( hitElement, matchingDimension, thePlayer ) if source == Marker1 then warpPedIntoVehicle( thePlayer, getCar ) end end )
-
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 )
-
But maybe someone will find who will do it for free. https://wiki.multitheftauto.com/wiki/Main_Page Learn how to script it yourself.
-
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
-
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'
-
Here you go. "Miley Cyrus" description="Twerk" type="script" version="1.3" />
-
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
-
e.e Am I gonna get actual help or what?
-
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
-
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)
-
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.
-
Don't think it has a script like that :L
-
Once the paypal account is made, you can pay. but you just can't recieve payments.