-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
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 ) لا تعتمد عليه مثآل
-
سيرفر تجريبي : 78.157.200.214:22015 بـ انتظار ارآئكم .. سعر السيرفر بـ عدد 30 لاعب : 17 ريال سعودي 17 SAR * الخادم بريطآني .. UK
-
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 )
-
You have to use xml functions to save them.
-
Hmm..What's the error now? It's impossible to be the event .
-
OK Add the event when you handle ( createJobGui ) Function . And re-name the function.
-
impossible can you post the gui function without arguments .
-
مو هوب شرط كذآ يمدي تسوي داتا بحيث يكون كولمن واآحد مثآل : -- # 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 سويت لووب لـ التيبل و استخرجت القيمة الثانية الارقام الايدي حق السيارهــ وسويت لة داتا صح ؟ بـ الرو وألخ هي تحفظ الشيء بـ اللستة بـ معنى اوضح .. و يوم جيت ارسل الترايقر جبت الداتا مثل ماشفت الداتا اللي مختارها [ = اتمنى فهمت ي آخوي ..
-
مو هوب شرط كذآ يمدي تسوي داتا بحيث يكون كولمن واآحد مثآل : -- # 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 ) الباقي كملة بـ نفسكـ و لا تحسبة كود كآمل مجرد مثآل فقطط ذذ
-
You want to save the text to set it when the player join?
-
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.
-
givePlayerMoney و يمديك تختصر اذا زر واحد مثل مآسويت مافية ارقمنت لاعب ..
-
صح ؟ 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 )
-
Thanks media fire works fine .
-
seat: An integer representing the seat in which the player is exiting from. https://wiki.multitheftauto.com/wiki/OnVehicleStartExit Parameters.
-
The one on the image.
-
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 .
-
لا فية ارقمنت تختار اللي تبي تظهر له الرسالةة .. كآبسينها صح خخ
-
اذا مسوي set > عادي مو شرط بالترتيب مثل كود الاخ بين؟ لازم تسوي set > ولا كيف تجيب داتا ماهي موجودة ترجع nil ..
-
[ = اللي سويتة مجرد اقتراح بدآل الشرط ذذ
-
يعني راح تجيه رسالتين 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 )
-
موب موجود element إفرض الـ الالمنت هو اللي لمس الماركر ..