-
Posts
493 -
Joined
Everything posted by toptional
-
Huh? It already is that... Client airportLSMarker = createMarker ( 13.60000038147, -2390.8000488281, 1858.0999755859, "cyclinder" , 10, 255, 0, 0, 180) function airportMarkerHitLS ( hitPlayer, matchingDimension ) if getElementType(hitElement) == "vehicle" and matchingDimension then fixVehicle(hitElement) end end addEventHandler ( "onClientMarkerHit", airportLSMarker, airportMarkerHitLS )
-
Ofc! How could i forget So if i just changed that script into client.lua? It still wont work, what functions do i use? confused.com
-
Related to this topic, Whats wrong with this? airportLSMarker = createMarker ( 13.60000038147, -2390.8000488281, 1858.0999755859, "cyclinder" , 10, 255, 0, 0, 180) function airportMarkerHitLS ( hitPlayer, matchingDimension ) if getElementType(hitElement) == "vehicle" and matchingDimension then fixVehicle(hitElement) end end addEventHandler ( "onClientMarkerHit", airportLSMarker, airportMarkerHitLS ) Got this error WARNING : server.lua Bad Arguement at add eventhandler [Expected element at arguement 2, got bootlearn]
-
Eh... it fixes the vehicle you wish to fix. For example... Server-side addCommandHandler("fixme", function(player, cmd) local vehicle = getPedOccupiedVehicle(player) if vehicle then fixVehicle(vehicle) end end ) Or... Server-side addEventHandler("onMarkerHit", root, function(hitElement, matchingDimension) if getElementType(hitElement) == "vehicle" and matchingDimension then fixVehicle(hitElement) end end ) Well i didnt need you to make me the script lol, Thanks anyway
-
Guys... fixVehicle ( vehicle theVehicle ) theVehicle: The vehicle you wish to fix I dont want a specific Vehicle to be fixed, i want any vehicle that enters this marker to be fixed, how to i make it any vehicle instead of just 1 Remember its Cars/Planes and others
-
I couldnt find it on the wiki! lol And asking here is just much easier
-
Whats the function that fixes a vehicle/aircraft Forgot it lol
-
Hi there. 3D modeler, needs whoever knows LUA very well.
toptional replied to Spaggiari's topic in Open Source Contributors
Oh lol i forgot to mention, I am A great Scriptor! And i have some other scriptors in the team who can help out! -
Hi there. 3D modeler, needs whoever knows LUA very well.
toptional replied to Spaggiari's topic in Open Source Contributors
Man! You have come to the right place! You are just the person i need! Im the Owner of a DM Server! And Cuase i built the server using ALL OF San Andreas some players get bored traveling soo much! So i need an Excellent 3D Modeler, who can help us out!! If you want to know more about my server just join us now! 87.238.173.193:505 Forum: www.cmgserver.co.nr We have a great staff team and alot of VERY Excited Players! -
Whats wrong with this? It just doesnt work setTimer(begin, math.random(200, 400), 1) function startCapture(hitElement) local team = getPlayerTeam(hitElement) capturing = setTimer(Capture, 60000, 1) outputChatBox(team.." is capturing the Weapon Boat! 60 seconds till capture!", 150,150,150) end addEventHandler( "onMarkerHit", captureMarker, startCapture ) function endCapture() killTimer(capturing) end addEventHandler( "onMarkerLeave", captureMarker, endCapture )
-
Has Anyone noticed GTA V is a complete copy of MTA? lol? Like Nearly Every feature in the second trailer is possible on MTA! lol they only improvement is the graphics
-
There is an error in your meta.xml. A typo or you just forgot to add the serverside script. Show the meta.xml if you're unable to fix it yourself. Im a fail trying now thanks! Edit - FIXED!
-
try this --Client GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window[3] = guiCreateWindow(322,193,361,409,"Aviator Free Car Spawner by Robbster",false) guiSetVisible ( GUIEditor_Window[3], false ) GUIEditor_Label[3] = guiCreateLabel(102,115,117,123,"",false,GUIEditor_Window[3]) GUIEditor_Grid[3] = guiCreateGridList(42,54,277,216,false,GUIEditor_Window[3]) guiGridListAddColumn(GUIEditor_Grid[3],"Airport Cars",0.9) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[3]) end guiGridListSetItemText(GUIEditor_Grid[3],0,1,"Baggage",false,false) guiGridListSetItemText(GUIEditor_Grid[3],1,1,"Tug",false,false) guiGridListSetItemText(GUIEditor_Grid[3],2,1,"Utility Van",false,false) GUIEditor_Button[3] = guiCreateButton(40,307,296,80,"Close",false,GUIEditor_Window[3]) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[3], onButtonClick, false ) addEventHandler( "onClientGUIDoubleClick", GUIEditor_Grid[3], doubleClicked, false ) end ) function doubleClicked ( ) local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local vehicleName = guiGridListGetItemText ( source, row, 1 ) triggerServerEvent ( "spawnVehicle" ) end end Complete fail... Script full of errors and wont even work
-
Got this Error Error: Client Triggered Serverside event spawnVehicle, but event was not added serverside
-
This is my Grid List GUI the GUI Opens but now i added that last script its failing with errors I need it so when someone double clicks the Baggage it spawns it and warps them into it. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window[3] = guiCreateWindow(322,193,361,409,"Aviator Free Car Spawner by Robbster",false) guiSetVisible ( GUIEditor_Window[3], false ) GUIEditor_Label[3] = guiCreateLabel(102,115,117,123,"",false,GUIEditor_Window[3]) GUIEditor_Grid[3] = guiCreateGridList(42,54,277,216,false,GUIEditor_Window[3]) guiGridListAddColumn(GUIEditor_Grid[3],"Airport Cars",0.9) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[3]) end guiGridListSetItemText(GUIEditor_Grid[3],0,1,"Baggage",false,false) guiGridListSetItemText(GUIEditor_Grid[3],1,1,"Tug",false,false) guiGridListSetItemText(GUIEditor_Grid[3],2,1,"Utility Van",false,false) GUIEditor_Button[3] = guiCreateButton(40,307,296,80,"Close",false,GUIEditor_Window[3]) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[3], onButtonClick, false ) end ) addEventHandler( "onClientGUIDoubleClick", GUIEditor_Grid[3], doubleClicked, false ) function doubleClickedName ( ) local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local name = guiGridListGetItemText ( source, 0, 1 ) triggerServerEvent ( "baggage", root, "test" ) local warpPedIntoVehicle ( baggage ) end end Thanks
-
Sorry for this Double Posting ! But can Anyone help?
-
/bump Ok guys here is what i got so far still getting big errors please take a look Bassically it appears when i hit the marker but only some of it appears not that stuff that says Utility Van and the Tug bit. Also When i click close it closes the GUI but not the button it self thanks for helping me ! Client.lua Planecarmarker = createMarker ( 1684.59326, 1453.62866, 9.76983 , "cylinder", 2, 9, 233, 213, 105 ) function MarkerHit2 ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor_Window[3], true ) end end addEventHandler ( "onClientMarkerHit", Planecarmarker, MarkerHit2 ) --PutCarFreeSpawn GUI HERE!!! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window[3] = guiCreateWindow(322,193,361,409,"Aviator Free Car Spawner by Robbster",false) guiSetVisible ( GUIEditor_Window[3], false ) GUIEditor_Label[3] = guiCreateLabel(102,115,117,123,"",false,GUIEditor_Window[3]) GUIEditor_Grid[3] = guiCreateGridList(42,54,277,216,false,GUIEditor_Window[3]) guiGridListAddColumn(GUIEditor_Grid[3],"Airport Cars",0.9) end ) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[3]) end guiGridListSetItemText(GUIEditor_Grid[3],0,1,"Baggage",false,false) guiGridListSetItemText(GUIEditor_Grid[3],1,1,"Tug",false,false) guiGridListSetItemText(GUIEditor_Grid[3],2,1,"Utility Van",false,false) GUIEditor_Button[3] = guiCreateButton(40,307,296,80,"Close",false,GUIEditor_Window[3]) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[3], function ( ) setCameraTarget ( localPlayer ) guiSetVisible ( GUIEditor_Window[3], false ) --removes GUI on click Exit Button showCursor ( false ) --removing the cursor end )
-
Trying now Edit- Tested it works but when you spawn the GUI doesnt go away, Im gonna try fixing that ill tell you if it doesnt work thanks! Edit - All working thanks!!!
-
Still doesn't work
-
Ive changed alot, Thanks to Castilo now look at this: viewtopic.php?f=91&t=50237
-
Got another problem My problem is when you enter the marker the GUI shows but clicking the button doesnt take you to the place set spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",false) guiSetVisible ( GUIEditor_Window[2], false ) GUIEditor_Memo[2] = guiCreateMemo(80,56,627,302,'Welcome to to the Aviators Airline Gamemode!t\n\n-----\nINFO\nINFO \nINFO\nINFO\n-------\n\nHere are the ranks\n\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)\n\nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns\n\nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter)\n\nArmy pilots is 500 points : These can fly everything\nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are.',false,GUIEditor_Window[2]) GUIEditor_Label[2] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) GUIEditor_Button[2] = guiCreateButton(280,401,194,92,"Lets get to Work Pilot!",false,GUIEditor_Window[2]) end ) function MarkerHit ( hitPlayer, matchingDimension ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor_Window[2], true ) showCursor ( true ) end end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[2], function ( ) setElementPosition ( localPlayer, 1679.3029785156, 1446.3712158203, 11.043098449707 ) setCameraTarget ( localPlayer ) fadeCamera ( true ) guiSetVisible ( GUIEditor_Window[2], false ) --shows GUI showCursor ( false ) --shows cursor end ,false )
-
GUI Shows up on resource start not on hit Marker....
-
Thanks Tomaat, Ive edited a few things now take a look castillo, Getting the same errors though Planecarmarker = createMarker ( 1684.59326, 1453.62866, 9.76983 , "cylinder", 2, 9, 233, 213, 105 ) function MarkerHit (hitPlayer, matchingDimension ) guiSetVisible (GUIEditor_Window[3], true ) end addEventHandler ( "onClientMarkerHit", Planecarmarker, MarkerHit ) --PutCarFreeSpawn GUI HERE!!! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[3] = guiCreateWindow(322,193,361,409,"Aviator Free Car Spawner by Robbster",false) GUIEditor_Label[3] = guiCreateLabel(102,115,117,123,"",false,GUIEditor_Window[3]) GUIEditor_Grid[3] = guiCreateGridList(42,54,277,216,false,GUIEditor_Window[3]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[3],"Airport Cars",0.2) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[3]) end guiGridListSetItemText(GUIEditor_Grid[3],0,1,"Baggage") guiGridListSetItemText(GUIEditor_Grid[4],1,1,"Tug") guiGridListSetItemText(GUIEditor_Grid[5],2,1,"Utility Van") GUIEditor_Button[3] = guiCreateButton(40,307,296,80,"Close",false,GUIEditor_Window[1]) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[3], function ( ) setCameraTarget ( localPlayer ) guiSetVisible ( GUIEditor_Window[3], false ) --removes GUI on click Exit Button showCursor ( false ) --shows cursor end )