Jump to content

مششكلة ><


Recommended Posts

سسسلام عليككم

وشش المششكلة بذذا الكوود ؟؟

  
Buttons = function() 
  local Edit = guiGetText(mEdit) 
  if source == mClose then 
    guiSetVisible(mWin, false) 
    showCursor(false) 
    guiSetInputEnabled(false) 
  elseif source == mSend then 
      if guiCheckBoxGetSelected(mCheck) == true then 
        triggerServerEvent("tSend", getLocalPlayer(),Edit) 
      end 
    else 
      triggerServerEvent("fSend", getLocalPlayer(),Edit) 
    end 
else 
    if source == mFake then 
      if guiCheckBoxGetSelected(mCheck) == true then 
        triggerServerEvent("tFake", getLocalPlayer(),Edit) 
      end 
    end 
  else 
    triggerServerEvent("fFake", getLocalPlayer(),Edit) 
  end 
end 
addEventHandler("onClientGUIClick", getRootElement(), Buttons) 
  
Link to comment
  
Buttons = function() 
    local Edit = guiGetText(mEdit) 
    if source == mClose then 
        guiSetVisible(mWin, false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    elseif source == mSend then 
        if guiCheckBoxGetSelected(mCheck) then 
            triggerServerEvent("tSend", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fSend", getLocalPlayer(),Edit) 
        end 
    elseif source == mFake then 
        if guiCheckBoxGetSelected(mCheck) then 
            triggerServerEvent("tFake", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fFake", getLocalPlayer(),Edit) 
        end 
    end 
addEventHandler("onClientGUIClick", getRootElement(), Buttons) 

Link to comment
  
Buttons = function() 
    local Edit = guiGetText(mEdit) 
    if source == mClose then 
        guiSetVisible(mWin, false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    elseif source == mSend then 
        if guiCheckBoxGetSelected(mCheck) then 
            triggerServerEvent("tSend", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fSend", getLocalPlayer(),Edit) 
        end 
    elseif source == mFake then 
        if guiCheckBoxGetSelected(mCheck) then 
            triggerServerEvent("tFake", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fFake", getLocalPlayer(),Edit) 
        end 
    end 
addEventHandler("onClientGUIClick", getRootElement(), Buttons) 

ناقص

end

جرب كذا

addEventHandler("onClientGUIClick", getRootElement(),function() 
    local Edit = guiGetText(mEdit) 
    if source == mClose then 
        guiSetVisible(mWin, false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    elseif source == mSend then 
        if guiCheckBoxGetSelected(mCheck) == true then 
            triggerServerEvent("tSend", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fSend", getLocalPlayer(),Edit) 
        end 
    elseif source == mFake then 
        if guiCheckBoxGetSelected(mCheck) == true then 
            triggerServerEvent("tFake", getLocalPlayer(),Edit) 
        else 
            triggerServerEvent("fFake", getLocalPlayer(),Edit) 
        end 
    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...