Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. addEvent('Event',true) addEventHandler('Event',root, function ( id ) if tonumber ( id ) then local x,y,z = getElementPosition ( client ) if x and y and z and id then createVehicle ( id,x,y,z ) end end end ) لا تعتمد عليه مثآل
  2. سيرفر تجريبي : 78.157.200.214:22015 بـ انتظار ارآئكم .. سعر السيرفر بـ عدد 30 لاعب : 17 ريال سعودي 17 SAR * الخادم بريطآني .. UK
  3. iPrestege

    Problems

    Not sure if it'll works but i hope that : addEventHandler("onClientGUIClick", takeButton, function ( ) if getElementData(localPlayer, "Occupation") == "Paramedic" then exports.DxChat:sayClientMessage("Your job is already paramedic!", 255, 0, 0) return end if (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin1) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs274", localPlayer) triggerEvent("closeMedicWindow", root) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) elseif (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin2) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs275", localPlayer) triggerEvent("closeMedicWindow", root) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) elseif (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin3) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs276", localPlayer) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) triggerEvent("closeMedicWindow", root) end end,false )
  4. You have to use xml functions to save them.
  5. iPrestege

    Problems

    Hmm..What's the error now? It's impossible to be the event .
  6. iPrestege

    Problems

    OK Add the event when you handle ( createJobGui ) Function . And re-name the function.
  7. iPrestege

    Problems

    impossible can you post the gui function without arguments .
  8. مو هوب شرط كذآ يمدي تسوي داتا بحيث يكون كولمن واآحد مثآل : -- # Client Side ~ : aCars = { { 'Car [1]',411 }, { 'Vehicle [2]',429 }, } for _,v in ipairs ( aCars ) do Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList,Row,Column,v[1],false,false ) guiGridListSetItemData ( GridList,Row,Column,v[2] ) end addEventHandler('onClientGUIClick',MyButton, function ( ) if guiGridListGetSelectedItem ( GridList ) ~= -1 then triggerServerEvent ( 'Event',localPlayer,guiGridListGetItemData ( GridList,guiGridListGetSelectedItem ( GridList ), Column ) ) end end,false ) الباقي كملة بـ نفسكـ و لا تحسبة كود كآمل مجرد مثآل فقطط ذذ استفسار ويش فايدة guiGridListGetItemData guiGridListSetItemData شوف انا وش سويت هنا : aCars = { { 'Car [1]',411 }, { 'Vehicle [2]',429 }, } for _,v in ipairs ( aCars ) do Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList,Row,Column,v[1],false,false ) guiGridListSetItemData ( GridList,Row,Column,v[2] ) end سويت لووب لـ التيبل و استخرجت القيمة الثانية الارقام الايدي حق السيارهــ وسويت لة داتا صح ؟ بـ الرو وألخ هي تحفظ الشيء بـ اللستة بـ معنى اوضح .. و يوم جيت ارسل الترايقر جبت الداتا مثل ماشفت الداتا اللي مختارها [ = اتمنى فهمت ي آخوي ..
  9. مو هوب شرط كذآ يمدي تسوي داتا بحيث يكون كولمن واآحد مثآل : -- # Client Side ~ : aCars = { { 'Car [1]',411 }, { 'Vehicle [2]',429 }, } for _,v in ipairs ( aCars ) do Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList,Row,Column,v[1],false,false ) guiGridListSetItemData ( GridList,Row,Column,v[2] ) end addEventHandler('onClientGUIClick',MyButton, function ( ) if guiGridListGetSelectedItem ( GridList ) ~= -1 then triggerServerEvent ( 'Event',localPlayer,guiGridListGetItemData ( GridList,guiGridListGetSelectedItem ( GridList ), Column ) ) end end,false ) الباقي كملة بـ نفسكـ و لا تحسبة كود كآمل مجرد مثآل فقطط ذذ
  10. You want to save the text to set it when the player join?
  11. iPrestege

    Problems

    addEventHandler("onClientGUIClick",getRootElement ( ), function ( ) if source == takeButton then if (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin1) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs274", localPlayer) triggerEvent("closeMedicWindow", root) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) elseif (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin2) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs275", localPlayer) triggerEvent("closeMedicWindow", root) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) elseif (guiGridListGetSelectedItem(GUIEditor.gridlist[1]) == skin3) and not getElementData(localPlayer, "Occupation") == "Paramedic" then triggerServerEvent("takeJobAs276", localPlayer) exports.DxChat:sayClientMessage("You're now employed as paramedic!", 0, 255, 0) triggerEvent("closeMedicWindow", root) elseif source == takeButton and getElementData(localPlayer, "Occupation") == "Paramedic" then exports.DxChat:sayClientMessage("Your job is already paramedic!", 255, 0, 0) end end end ) Try this maybe because the button created with on start event.
  12. givePlayerMoney و يمديك تختصر اذا زر واحد مثل مآسويت مافية ارقمنت لاعب ..
  13. صح ؟ addEventHandler("onClientGUIClick",root, function() if ( source == Aloy ) then if isPedInVehicle(localPlayer) then givePlayerMoney(source,1000) setElementData(localPlayer,"Alooy",true) else setElementData(localPlayer,"Alooy",false) end end end) addEventHandler("onClientGUIClick",Aloy, function ( ) if isPedInVehicle( localPlayer ) then givePlayerMoney( 1000 ) setElementData( localPlayer,"Alooy",true ) else setElementData( localPlayer,"Alooy",false ) end end,false )
  14. seat: An integer representing the seat in which the player is exiting from. https://wiki.multitheftauto.com/wiki/OnVehicleStartExit Parameters.
  15. حياكـ الله : ) ..
  16. works for me. Doesn't work with me error : The connection was closed by the remote server Make sure that the address is written correctly or Try searching for the site. If you don't mind upload it to : http://www.solidfiles.com .
  17. لا فية ارقمنت تختار اللي تبي تظهر له الرسالةة .. كآبسينها صح خخ
  18. اذا مسوي set > عادي مو شرط بالترتيب مثل كود الاخ بين؟ لازم تسوي set > ولا كيف تجيب داتا ماهي موجودة ترجع nil ..
  19. اذا مسوي set > عادي
  20. [ = اللي سويتة مجرد اقتراح بدآل الشرط ذذ
  21. يعني راح تجيه رسالتين outputChatBox( "Welcome", element, 255, 255, 255, true ) outputChatBox ( "The Msg", getPlayerFromSerial ( "The Serial" ) or element, 255, 255, 255, true ) اكيد اذا ماسويت الشرط ( = addEventHandler ( "onMarkerHit", theMarker, function ( element ) if ( getElementType ( element ) == "player" ) then outputChatBox( "Welcome", element, 255, 255, 255, true ) if getPlayerFromSerial ( "The Serial" ) then outputChatBox ( "The Msg", getPlayerFromSerial ( "The Serial" ), 255, 255, 255, true ) end end end, false )
  22. موب موجود element إفرض الـ الالمنت هو اللي لمس الماركر ..
×
×
  • Create New...