Jump to content

مشكلة معي في الفاكشن


WTF_

Recommended Posts


GUIEditor = {
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        w1 = guiCreateWindow(158, 120, 422, 366, "Ticket System", false)
        guiWindowSetSizable(w1, false)
        guiSetAlpha(w1, 1.00)
        guiSetProperty(w1, "CaptionColour", "FFCE3094")

        b1 = guiCreateButton(116, 84, 204, 62, "شراء التذكرة", false, w1)
        guiSetFont(b1, "default-bold-small")
        guiSetProperty(b1, "NormalTextColour", "FFDB00FB")
        b2 = guiCreateButton(116, 174, 204, 62, "لا أريد", false, w1)
        guiSetFont(b2, "default-bold-small")
        guiSetProperty(b2, "NormalTextColour", "FF00F2FA")
        b3 = guiCreateButton(354, 322, 58, 34, "خروج", false, w1)
        guiSetFont(b3, "default-bold-small")
        guiSetProperty(b3, "NormalTextColour", "FFF90000")
        GUIEditor.label[1] = guiCreateLabel(76, 24, 288, 60, "سعر التذكرة 20 الف", false, w1)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 97, 58, 195)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
        GUIEditor.label[2] = guiCreateLabel(10, 329, 110, 37, "By : Alex McWhit", false, w1)
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 64, 202, 50)
        GUIEditor.label[3] = guiCreateLabel(33, 235, 362, 87, "", false, w1)    
    end
)
addEventHandler("onClientResourceStart", root,
    function()
guiSetVisible ( w1 , false )	
end 
)


m1 = createMarker ( 2774.73999, -1704.48718, 10.84375,"cylinder", 1.5, 255, 255, 50, 170 )
addEventHandler ( "onMarkerHit" , m1 , 
function ( ) 
guiSetVisible ( w1 , true )
 showCursor ( true) 
 end 
 )
 

ليش لما ألمس الماركر ما تضهر اللوحة فففففففففف 

ما في مشاكل في الديبق 

Link to comment
GUIEditor = {
    label = {}
}

        w1 = guiCreateWindow(158, 120, 422, 366, "Ticket System", false)
		guiSetVisible ( w1 , false )
        guiWindowSetSizable(w1, false)
        guiSetAlpha(w1, 1.00)
        guiSetProperty(w1, "CaptionColour", "FFCE3094")

        b1 = guiCreateButton(116, 84, 204, 62, "شراء التذكرة", false, w1)
        guiSetFont(b1, "default-bold-small")
        guiSetProperty(b1, "NormalTextColour", "FFDB00FB")
        b2 = guiCreateButton(116, 174, 204, 62, "لا أريد", false, w1)
        guiSetFont(b2, "default-bold-small")
        guiSetProperty(b2, "NormalTextColour", "FF00F2FA")
        b3 = guiCreateButton(354, 322, 58, 34, "خروج", false, w1)
        guiSetFont(b3, "default-bold-small")
        guiSetProperty(b3, "NormalTextColour", "FFF90000")
        GUIEditor.label[1] = guiCreateLabel(76, 24, 288, 60, "سعر التذكرة 20 الف", false, w1)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 97, 58, 195)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
        GUIEditor.label[2] = guiCreateLabel(10, 329, 110, 37, "By : Alex McWhit", false, w1)
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 64, 202, 50)
        GUIEditor.label[3] = guiCreateLabel(33, 235, 362, 87, "", false, w1)    




m1 = createMarker ( 2774.73999, -1704.48718, 10.84375,"cylinder", 1.5, 255, 255, 50, 170 )
addEventHandler ( "onMarkerHit" , m1 , 
function ( ) 
guiSetVisible ( w1 , true )
 showCursor ( true) 
 end 
 )

 

Link to comment
15 minutes ago, MR.Mosa said:

GUIEditor = {
    label = {}
}

        w1 = guiCreateWindow(158, 120, 422, 366, "Ticket System", false)
		guiSetVisible ( w1 , false )
        guiWindowSetSizable(w1, false)
        guiSetAlpha(w1, 1.00)
        guiSetProperty(w1, "CaptionColour", "FFCE3094")

        b1 = guiCreateButton(116, 84, 204, 62, "شراء التذكرة", false, w1)
        guiSetFont(b1, "default-bold-small")
        guiSetProperty(b1, "NormalTextColour", "FFDB00FB")
        b2 = guiCreateButton(116, 174, 204, 62, "لا أريد", false, w1)
        guiSetFont(b2, "default-bold-small")
        guiSetProperty(b2, "NormalTextColour", "FF00F2FA")
        b3 = guiCreateButton(354, 322, 58, 34, "خروج", false, w1)
        guiSetFont(b3, "default-bold-small")
        guiSetProperty(b3, "NormalTextColour", "FFF90000")
        GUIEditor.label[1] = guiCreateLabel(76, 24, 288, 60, "سعر التذكرة 20 الف", false, w1)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 97, 58, 195)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
        GUIEditor.label[2] = guiCreateLabel(10, 329, 110, 37, "By : Alex McWhit", false, w1)
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 64, 202, 50)
        GUIEditor.label[3] = guiCreateLabel(33, 235, 362, 87, "", false, w1)    




m1 = createMarker ( 2774.73999, -1704.48718, 10.84375,"cylinder", 1.5, 255, 255, 50, 170 )
addEventHandler ( "onMarkerHit" , m1 , 
function ( ) 
guiSetVisible ( w1 , true )
 showCursor ( true) 
 end 
 )

 

onMarkerHit -- server side 

Link to comment
GUIEditor = {
    label = {}
}
        w1 = guiCreateWindow(158, 120, 422, 366, "Ticket System", false)
        guiWindowSetSizable(w1, false)
        guiSetAlpha(w1, 1.00)
        guiSetProperty(w1, "CaptionColour", "FFCE3094")
        guiSetVisible ( w1 , false )
        b1 = guiCreateButton(116, 84, 204, 62, "شراء التذكرة", false, w1)
        guiSetFont(b1, "default-bold-small")
        guiSetProperty(b1, "NormalTextColour", "FFDB00FB")
        b2 = guiCreateButton(116, 174, 204, 62, "لا أريد", false, w1)
        guiSetFont(b2, "default-bold-small")
        guiSetProperty(b2, "NormalTextColour", "FF00F2FA")
        b3 = guiCreateButton(354, 322, 58, 34, "خروج", false, w1)
        guiSetFont(b3, "default-bold-small")
        guiSetProperty(b3, "NormalTextColour", "FFF90000")
        GUIEditor.label[1] = guiCreateLabel(76, 24, 288, 60, "سعر التذكرة 20 الف", false, w1)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 97, 58, 195)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
        GUIEditor.label[2] = guiCreateLabel(10, 329, 110, 37, "By : Alex McWhit", false, w1)
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 64, 202, 50)
        GUIEditor.label[3] = guiCreateLabel(33, 235, 362, 87, "", false, w1) 

m1 = createMarker ( 2774.73999, -1704.48718, 10.84375,"cylinder", 1.5, 255, 255, 50, 170 )
addEventHandler ( "onClientMarkerHit" , m1 , 
function (hitElement)
  if (hitElement == localPlayer) and ( getElementType ( hitElement ) == "player" ) then
     guiSetVisible ( w1 , true )
     showCursor ( true)
    end
 end 
 );

 

Link to comment
1 hour ago, #BrosS said:

GUIEditor = {
    label = {}
}
        w1 = guiCreateWindow(158, 120, 422, 366, "Ticket System", false)
        guiWindowSetSizable(w1, false)
        guiSetAlpha(w1, 1.00)
        guiSetProperty(w1, "CaptionColour", "FFCE3094")
        guiSetVisible ( w1 , false )
        b1 = guiCreateButton(116, 84, 204, 62, "شراء التذكرة", false, w1)
        guiSetFont(b1, "default-bold-small")
        guiSetProperty(b1, "NormalTextColour", "FFDB00FB")
        b2 = guiCreateButton(116, 174, 204, 62, "لا أريد", false, w1)
        guiSetFont(b2, "default-bold-small")
        guiSetProperty(b2, "NormalTextColour", "FF00F2FA")
        b3 = guiCreateButton(354, 322, 58, 34, "خروج", false, w1)
        guiSetFont(b3, "default-bold-small")
        guiSetProperty(b3, "NormalTextColour", "FFF90000")
        GUIEditor.label[1] = guiCreateLabel(76, 24, 288, 60, "سعر التذكرة 20 الف", false, w1)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 97, 58, 195)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center")
        GUIEditor.label[2] = guiCreateLabel(10, 329, 110, 37, "By : Alex McWhit", false, w1)
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 64, 202, 50)
        GUIEditor.label[3] = guiCreateLabel(33, 235, 362, 87, "", false, w1) 

m1 = createMarker ( 2774.73999, -1704.48718, 10.84375,"cylinder", 1.5, 255, 255, 50, 170 )
addEventHandler ( "onClientMarkerHit" , m1 , 
function (hitElement)
  if (hitElement == localPlayer) and ( getElementType ( hitElement ) == "player" ) then
     guiSetVisible ( w1 , true )
     showCursor ( true)
    end
 end 
 );

 

كفوو والله ما انتبهت انه حاطها لسيرفر

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