-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
addCommandHandler ( "handcuff", function ( thePlayer, _, who ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Police" ) ) then local target = getPlayerFromName ( who ) -- Get the player from it's name if ( target ) then -- If the player exists setPedAnimation ( target, "SHOP", "SHP_Rob_Handsup", -1, true, false, false ) -- Set his/her animation setElementFrozen ( target, true ) -- Free him/her outputChatBox ( "Player ".. getPlayerName ( target ) .." was handcuffed by ".. getPlayerName ( thePlayer ) ..".", root, 255, 241, 0 ) -- Output a global message end end end )
-
--- سيرفر addEventHandler("onPlayerJoin",root, function () bindKey(source,"F1","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F1","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox("You must be an admin",thePlayer,255,0,0) end end -- كلينت wnd = guiCreateWindow(358, 338, 299, 99, "Out/on/ jobs", false) guiWindowSetSizable(wnd, false) guiSetVisible ( wnd, false ) button1 = guiCreateButton(10, 23, 118, 66, "Start Shift", false, wnd) guiSetProperty(button1, "NormalTextColour", "FF10F40A") button2 = guiCreateButton(171, 23, 118, 66, "out Shift", false, wnd) guiSetProperty(button2, "NormalTextColour", "FF10F40A") function toggleGUI() if guiGetVisible(wnd) == true then guiSetVisible(wnd,false) showCursor(false) else guiSetVisible(wnd,true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI)
-
اما الكيبورد متعطل او انك حايس اعدادت الكيبورد من لوحة التحكم
-
Ok , if he's more helpful to you then you can do whatever you want with your script Good Luck .
-
well i dont see any gui window ? how will it work without window ? also have a look at this , viewtopic.php?f=108&t=50510
-
عكست فنكشن اخراج الرسالة في الشات text: The text string that you wish to send to the chat window. If more than 128 characters it will not be showed in chat. Optional Arguments visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility. r: The amount of red in the color of the text. Default value is 231. g: The amount of green in the color of the text. Default value is 217. b: The amount of blue in the color of the text. Default value is 176. colorCoded: A bool المفروض الالوان قبل كلمة true
-
where is the window and what is these ? jobName, desc , teamName , skins ? what are you trying to do here ?
-
ارد اعيد نفس الكلام , وثانيا انت من حق تقرر شغال ومو شغال ادا انا مجربه بعيوني ._. مسوي فيها مبرمج ._. يابعد راسي يادنجر حنا هنا نبي نفيدك ونعلمك الصح لازم تسوي تحقق من الاعب لمس الماركر + تضيف حدث onMarkerHit / onClientMarkerHit حسب السكربت كلينت او سيرفر
-
ومن قال لك انه ماراح يشتغل وانا مجربه؟ مسوي فيها مبرمج يعني ._. ماشاء الله يبي يشتغل ؟ وكيف تبيه يشتغل ومافيه لاتحقق ولا افنت يشتغل عليه السكربت ولا بس شفت الماركر تمت الامور ؟
-
هريسة 100 % وين الايفنت ؟ وليه تسوي فنكشن تقدر تختصره بدون وين التحقق من الاعب ؟ وين تحقق الماركر ؟ وش دخل matchingDimension ?
-
Really Leaking your script ? You Don't want help ? / i don't need it i made a lot of scripts and help alot you can Check my posts .. i want to see this side of script triggerEvent('showMeWindow' )
-
Try Now , i Edited my post , and make sure it's serverSide also /debugscript 3 to see if there is any errors post them here .
-
Can you post the full code please ?
-
يابن الحلال اطرح كود النافذه حقك وانا اخلصه لك بس لاتطولها وهي قصيرة . . .
-
طيب قالك سوي تحقق اذا الاعب بقروب الفيب تطلع الصورة فوقه . . . +1 ^ + ولكم تسلم يابعدي ,
-
well i found this in wiki .. https://wiki.multitheftauto.com/wiki/Meta.xml
-
setElementInterior setElementDimension
-
بالنسبة لسترينق قوسب ماضن تضبط الا مع النص ممكن سترينق فورمات + ماث فلور تضبط لان شفت لهم استخدامات مع الوقت والدم ويشيل الزائد + ' Thank's '
-
اطرح كود النافذه . . .
-
تقدر تسويها بالطريقتين وتشتغل , بالنسبة للفورمات راح يطلع رقمين بعد الفاصلة مثلا: 10.11 اها يعني يجيب لك المكان بدون فواصل حلو بس لازم تستخدم سترينق فورمات ؟ ولا اوامر السترينق الثانية تضبط + بالنسبة للشات انا قبل سويت نفس الشي وكتبت الكلمه وقال خطأ في احضار القيمه الثالثه اللي هي z سويت له مخرج بالشات " " وضبط وتخطيت الخطأ
-
طيب قالك سوي تحقق اذا الاعب بقروب الفيب تطلع الصورة فوقه . . .
-
--- ServerSide addEventHandler ( 'onVehicleEnter', resourceRoot, function ( player ) local nVehicle = getPedOccupiedVehicle ( player ) if ( nVehicle ) then setVehicleLocked ( nVehicle, true ) outputChatBox ( ' Vehilce is Locked', player, 255, 255, 0 ) end end )