Jump to content

Some Stupid questions :D


Blaawee

Recommended Posts

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

how can i run resource from an other resource

i got this :

function openHedit() 
    exports.hedit:toggleEditor() 
    call ( getResourceFromName ( "hedit" ), "toggleEditor") 
end 

Lol, why are you using "exports" and "call" together ?

Edit: Show us the "toggleEditor" function too.

Link to comment
how can i run resource from an other resource

i got this :

function openHedit() 
    exports.hedit:toggleEditor() 
    call ( getResourceFromName ( "hedit" ), "toggleEditor") 
end 

Lol, why are you using "exports" and "call" together ?

Edit: Show us the "toggleEditor" function too.

o.k i'll use the :

exports.hedit:toggleEditor() 

about the hole code chake the hedit resource in :

hedit\handlers\menu\subMenu

do you want to start another resource on the start of this resource or do you want something to trigger it to start?

i want trigger it to open the other resource windows

Link to comment
  • 2 weeks later...

hi guys i have this code

addEventHandler ( "onPlayerChat", root, 
function ( msg, type , name) 
    if messageType == 0 then 
        cancelEvent () 
        name = getPlayerName ( source ) 
        outputChatBox ( "#FF0000[The Best] #ffffff= #ffffff[ " .. name .. "#ffffff ]: " .. msg, getRootElement(), 255, 255, 255, true ) 
    end 
end) 

i'm using the drft resource , i want get the best drifter name when he chat

Link to comment

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...