Jump to content

Script Issue, Simple Mistake can't figure it out.


toptional

Recommended Posts

Got a bit of a problem

]

marker1 = createMarker ( 215.77626, 1826.16956, 5.41406, "cylinder", 1.2, 0, 0, 255, 255 ) 
  
addEventHandler ( "onClientRender", root, drawingFunction ) 
  
addEventHandler("onClientMarkerHit", marker1, 
    function drawingFunction() 
GWindow1 = guiCreateWindow(426, 183, 407, 363, "Join the Brotherhood", false) 
guiWindowSetSizable(GWindow1, false) 
showCursor (true) 
        guiCreateStaticImage( 475, 240, 300, 140, "actest.png", false ) 
        dxDrawText("Welcome, Click Join if you would like to join the Roman Brotherhood, it is your choice to choose your Brotherhood, to choose the path and follow the creed, This is Assassins Creed on MTA.", 458, 366, 806, 509, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true) 
    end 
) 

I'm getting this error

WARNING: loading script failed AC\client.lua:28 '(' expected near 'DrawingFunction'

Help please.

Link to comment
marker1 = createMarker ( 215.77626, 1826.16956, 5.41406, "cylinder", 1.2, 0, 0, 255, 255 ) 
  
function drawingFunction() 
GWindow1 = guiCreateWindow(426, 183, 407, 363, "Join the Brotherhood", false) 
guiWindowSetSizable(GWindow1, false) 
showCursor (true) 
        guiCreateStaticImage( 475, 240, 300, 140, "actest.png", false ) 
        dxDrawText("Welcome, Click Join if you would like to join the Roman Brotherhood, it is your choice to choose your Brotherhood, to choose the path and follow the creed, This is Assassins Creed on MTA.", 458, 366, 806, 509, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true) 
end 
  
addEventHandler("onClientMarkerHit", marker1,  
    function(hitElement) 
        addEventHandler( "onClientRender", root, drawingFunction ) 
    end 
) 
  

Edited by Guest
Link to comment
Thanks! It worked

Never knew that :)

Create the window and image out of the "onClientRender" event.

Yours completely didn't work.

I'm not saying that my code works. It was made by you, i just edited.

Create the window and image out of the "onClientRender" event.
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...