toptional Posted March 31, 2013 Posted March 31, 2013 I need the all the dx stuff to show when you enter the only marker, I really don't understand Dx it's a big confusion to me can anyone explain? here is my code: firstMissionMarker = createMarker ( 1699.88647, -2259.09521, 38.5, "cylinder", 1.5, 255, 255, 0, 125 ) setElementInterior ( firstMissionMarker, 2) addEventHandler("onClientRender", root, function() dxDrawRectangle(368, 208, 520, 354, tocolor(3, 15, 251, 195), true) dxDrawText("The Aviator's Spawn Panel Information.", 479, 226, 725, 257, tocolor(254, 0, 0, 195), 1, "sans", "left", "top", false, false, true, false, false) dxDrawLine(368, 267, 889, 267, tocolor(43, 0, 0, 195), 1, true) dxDrawText("Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\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 ", 396, 272, 871, 503, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true, false, false) end ) end
iPrestege Posted March 31, 2013 Posted March 31, 2013 I,Think that what you are trying to do? try this (; firstMissionMarker = createMarker ( 1699.88647, -2259.09521, 38.5, "cylinder", 1.5, 255, 255, 0, 125 ) setElementInterior ( firstMissionMarker, 2) addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") then removeEventHandler("onClientRender",root,Draw); end; end ); function Draw() dxDrawRectangle(368, 208, 520, 354, tocolor(3, 15, 251, 195), true) dxDrawText("The Aviator's Spawn Panel Information.", 479, 226, 725, 257, tocolor(254, 0, 0, 195), 1, "sans", "left", "top", false, false, true, false, false) dxDrawLine(368, 267, 889, 267, tocolor(43, 0, 0, 195), 1, true) dxDrawText("Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)/n /n A 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 A Commercial /n /n pilot is 250 points These can fly everything /n except the military planes and helicopters (hydra/hunter) Army pilots is 500 points : These can fly everything /n In an airline, all airplanes of the airline can be used not matter what \"level\" you are", 396, 272, 871, 503, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true, false, false) end; #
toptional Posted March 31, 2013 Author Posted March 31, 2013 Ok It works, but the \n is showing in it and not making a new line
TAPL Posted April 1, 2013 Posted April 1, 2013 I am not sure, but i think you maybe need to enable the argument wordBreak.
Greenie0101 Posted April 1, 2013 Posted April 1, 2013 Anyone? "Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter)/n /n A 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 A Commercial /n /n pilot is 250 points These can fly everything /n except the military planes and helicopters (hydra/hunter) Army pilots is 500 points : These can fly everything /n In an airline, all airplanes of the airline can be used not matter what \"level\" you are you did some of them (Welcome to the Aviators Gamemode!\n\nThe main focus of....) as a \n and others (These can fly everything /n In an airline, all airplanes of the...) as a /n make all the /n into \n
toptional Posted April 1, 2013 Author Posted April 1, 2013 Another Issue- How do i make a dxrectangle like a Gui button?
toptional Posted April 1, 2013 Author Posted April 1, 2013 Here where there you see root as the element that means it shows for all, i have tried source, localPlayer, plr nothing works with them the gui doesn't even show. addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") then removeEventHandler("onClientRender",root,Draw); end; end );
MR.S3D Posted April 1, 2013 Posted April 1, 2013 Here where there you see root as the element that means it shows for all, i have tried source, localPlayer, plr nothing works with them the gui doesn't even show. addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") then removeEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if ( plr == localPlayer ) then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if ( plr == localPlayer ) then removeEventHandler("onClientRender",root,Draw); end; end );
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