toptional Posted November 11, 2012 Share Posted November 11, 2012 I need some help the script is quite self-explanatory please tell me whats wrong client.lua addEventHandler("onPlayerLogin", root,) function() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end ---Spawning the player to the Spawn Room--- function MarkerHit ( hitPlayer, matchingDimension ) --- make the window invisible--- guiSetVisible(SpawnGUI, false) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(266,183,477,402,"The Aviator Spawn System by Robbster",false) guiSetAlpha(GUIEditor_Window[1],0) GUIEditor_Memo[1] = guiCreateMemo(63,37,357,169,"A 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[1]) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) GUIEditor_Button[1] = ----Remember to set the Memo only readable not writeable---- Server.lua createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , string theType = "cylinder", 2, 9, 30, 213, 255, visibleTo = getRootElement() ) The GUI was made in GUI Editor Thanks alot!! Link to comment
manve1 Posted November 11, 2012 Share Posted November 11, 2012 (edited) client.lua addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255, 9999 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(266,183,477,402,"The Aviator Spawn System by Robbster",false) GUIEditor_Memo[1] = guiCreateMemo(63,37,357,169,'A 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, AT-400, military planes, 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 no matter what \"level\" you are',false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server.lua addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), function() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end ) Edited November 11, 2012 by Guest Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Dont Work i now get this Error Warning: Loading scripted failed: Avia_Sawn/client.lua:23: unfinished string near "' A Student pilot is 0 points: These can fly everything except the andromanda AT-400, Military planes and military helicopters (hydra/Hunter)' Link to comment
manve1 Posted November 11, 2012 Share Posted November 11, 2012 Found error, copy my code again. Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Now there are no errors, But it doesnt spawn you to the place when connecting to the server Link to comment
manve1 Posted November 11, 2012 Share Posted November 11, 2012 thats because u made it when u login, i just made that it would work on client side too Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 thats because u made it when u login, i just made that it would work on client side too So confused right now, I have got to this stage Client Side addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255, 9999 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server Side addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), function() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end ) Im getting no errors but its still not working Link to comment
Baseplate Posted November 11, 2012 Share Posted November 11, 2012 Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn) Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Still dont work! The Main Problem is when i join the login panel and the GUI show! I need to login then get spawned to that location in the script then in that location go to the marker and then when entering the marker the GUI closes! getting this error now Warning: Avia_Spawn/client.lua:Bad Arguement @ 'SetVisible' [Expected gui-element at arguement 1, got nil] Link to comment
Baseplate Posted November 11, 2012 Share Posted November 11, 2012 Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[2], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[2], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn) You used wrong variables on client.lua Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', localPlayer ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[2], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[2], false) GUIEditor_Window[2] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn) You used wrong variables on client.lua Same Error No change ! Link to comment
Baseplate Posted November 11, 2012 Share Posted November 11, 2012 Client: addEventHandler("onClientPlayerLogin", getRootElement(), function() triggerServerEvent( 'spawnOnLogin', getLocalPlayer() ) end ) ---Spawning the player to the Spawn Room--- spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible(GUIEditor_Window[1], true) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} guiSetVisible(GUIEditor_Window[1], false) GUIEditor_Window[1] = guiCreateWindow(147,141,749,548,"The Aviator Spawn Panel by Robbster",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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) Server: function spawn() spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578) end addEvent( 'spawnOnLogin', true ) addEventHandler('spawnOnLogin', getRootElement(), spawn) Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Fail Same Error, You made it even worse the Memo is now in a random place Link to comment
Castillo Posted November 11, 2012 Share Posted November 11, 2012 @Samer: How could it hide the window if you put it before it has been created? -- client side: spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible ( GUIEditor_Window[2], true ) outputChatBox ( getPlayerName ( hitPlayer ) .." entered a marker" ) end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} 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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) -- server side: ---Spawning the player to the Spawn Room--- function spawn ( ) spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0 ) end addEventHandler ( 'onPlayerLogin', getRootElement(), spawn ) Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 @Samer: How could it hide the window if you put it before it has been created?-- client side: spawnmarker = createMarker ( 1969.9000244141, -1517.8000488281, 970.79998779297 , "cylinder", 2, 9, 30, 213, 255 ) function MarkerHit ( hitPlayer, matchingDimension ) guiSetVisible ( GUIEditor_Window[2], true ) outputChatBox ( getPlayerName ( hitPlayer ) .." entered a marker" ) end addEventHandler ( "onClientMarkerHit", spawnmarker, MarkerHit ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} 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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) -- server side: ---Spawning the player to the Spawn Room--- function spawn ( ) spawnPlayer ( source , 1958.7082519531, -1517.5471191406, 973.55889892578, 0, 1, 0, 0 ) end addEventHandler ( 'onPlayerLogin', getRootElement(), spawn ) Thanks I can't try it now because I'm out ill be home in 2-3 hoursind testing it for me? Also check ur pm Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 Thanks a lot it works Now whats that function to make something happen when you click the GUI Button?? Soooo many functions like a thousand! hard to remember them all lol Link to comment
manve1 Posted November 11, 2012 Share Posted November 11, 2012 addEventHandler('onClientGUIClick', button, function () --code end ) Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 addEventHandler('onClientGUIClick', button, function () --code end ) Thanks Link to comment
toptional Posted November 11, 2012 Author Share Posted November 11, 2012 addEventHandler('onClientGUIClick', >>>>>button<<<<< Coordinates there?, function () --code end ) Do i put the coords where it says button? Link to comment
manve1 Posted November 12, 2012 Share Posted November 12, 2012 addEventHandler('onClientGUIClick', BUTTON, function () --code end ) Do i put the coords where it says button? you put name of button where it say's "BUTTON" and replace "--code" to code you want it to be Link to comment
toptional Posted November 12, 2012 Author Share Posted November 12, 2012 addEventHandler('onClientGUIClick', BUTTON, function () --code end ) Do i put the coords where it says button? you put name of button where it say's "BUTTON" and replace "--code" to code you want it to be I have done this , Please fix it GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} 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[1] = guiCreateLabel(270,398,94,46,"",false,GUIEditor_Window[2]) GUIEditor_Button[1] = guiCreateButton(280,401,194,92,"Lets get to Work Pilot!",false,GUIEditor_Window[2]) button = guiCreateButton(280,401,194,92,"Lets get to Work Pilot!",true ) addEventHandler('onClientGUIClick', button, function () setElementPosition ( source, 1679.3029785156, 1446.3712158203, 11.043098449707 ) end ) Link to comment
manve1 Posted November 12, 2012 Share Posted November 12, 2012 https://wiki.multitheftauto.com/wiki/Scripting_Introduction Learn Basics ... https://wiki.multitheftauto.com/wiki/SetElementPosition Read the client side ... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now