Jump to content

export functions | Dx Text


Recommended Posts

Posted

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

#

  

Posted
guiGetScreenSize 

This function retrieves the local screen size according to the resolution they are using.

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

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 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 !

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

  

Posted

I think it's possble because the x, y it's in dx and images functions it's shared ,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
   function AbsoluteToRelative( X, Y ) 
            local rX, rY = guiGetScreenSize() 
            local x = X/rX 
            local y = Y/rY 
            return x, y 
    end 
    -- Example made by laserlaser 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
   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!!

  

Posted
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 )  

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

Posted
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

  

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...