iPrestege Posted April 7, 2013 Share Posted April 7, 2013 Hello Guys Am Trying To Make My First Script With "export functions" The Problem Is I Dont Know Much About It But I Have Problem Now How Can I Make The Dx Text "Apparent To All Screen Sizes" This What I Want Now And Will Complete Later About The [export functions] I Hope Some One Will Help Me On This Thank's In Advance Mr.Pres[T]ege # Link to comment
Max+ Posted April 7, 2013 Share Posted April 7, 2013 guiGetScreenSize This function retrieves the local screen size according to the resolution they are using. Link to comment
iPrestege Posted April 7, 2013 Author Share Posted April 7, 2013 Thanks But There's No Way To Explain How To Make Export Function? Link to comment
Castillo Posted April 7, 2013 Share Posted April 7, 2013 It's actually really simple, on your meta.xml you add this: function="myFunctionName" type="myScriptType(server or client)" /> Then on your script you do: function myFunctionName ( ) end Link to comment
Max+ Posted April 7, 2013 Share Posted April 7, 2013 It's actually really simple, on your meta.xml you add this: function="myFunctionName" type="myScriptType(server or client)" /> Then on your script you do: function myFunctionName ( ) end Thank's Man i really Understand the exporting ! Link to comment
iPrestege Posted April 7, 2013 Author Share Posted April 7, 2013 can i make a relative pos with dx text i mean can i make image in gui Editor and take the position and replace it with dx position? Or impossible? Thanks in advance. Link to comment
Max+ Posted April 7, 2013 Share Posted April 7, 2013 I think it's possble because the x, y it's in dx and images functions it's shared , Link to comment
iPrestege Posted April 7, 2013 Author Share Posted April 7, 2013 I want a definite answer! Link to comment
Castillo Posted April 7, 2013 Share Posted April 7, 2013 function AbsoluteToRelative( X, Y ) local rX, rY = guiGetScreenSize() local x = X/rX local y = Y/rY return x, y end -- Example made by laserlaser Link to comment
iPrestege Posted April 7, 2013 Author Share Posted April 7, 2013 function AbsoluteToRelative( X, Y ) local rX, rY = guiGetScreenSize() local x = X/rX local y = Y/rY return x, y end -- Example made by laserlaser Exactly thanks!! Link to comment
Ab-47 Posted April 7, 2013 Share Posted April 7, 2013 It's actually really simple, on your meta.xml you add this: function="myFunctionName" type="myScriptType(server or client)" /> Then on your script you do: function myFunctionName ( ) end Also to call this export you'd need something like: exports.ResourceName:myFunctionName ( "The text you wish to output", R, G, B ) Link to comment
iPrestege Posted April 7, 2013 Author Share Posted April 7, 2013 It's actually really simple, on your meta.xml you add this: function="myFunctionName" type="myScriptType(server or client)" /> Then on your script you do: function myFunctionName ( ) end Also to call this export you'd need something like: exports.ResourceName:myFunctionName ( "The text you wish to output", R, G, B ) Thanks 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