-
Posts
300 -
Joined
-
Last visited
Everything posted by Naif
-
شوف هاذا الكود بجانب سيرفر addEvent("spawnOnPosition", true) addEventHandler('spawnOnPosition', root, function (x, y, z) if getElementHealth ( source ) > 1 then if getPedOccupiedVehicle(source) then setElementPosition(getPedOccupiedVehicle(source), x, y, 0) setElementPosition(getPedOccupiedVehicle(source), x, y, z+3) else setElementPosition(source, x, y, 0) setElementPosition(source, x, y, z+3) end fadeCamera(source, true) else spawnPlayer(source, 0, 0, 3 ) setElementPosition(source, x, y, z+3) setCameraTarget (source, source) toggleAllControls(source, true, true, true) setPedStat(source, 160, 1000) setPedStat(source, 229, 1000) setPedStat(source, 230, 1000) fadeCamera(source, true) end end )
-
سلام عليكم ليه حرف ظ م ينكتب عندي ؟ اتمنى تردون بـ أسرع وقت
-
أكيد الام امك ثم امك ثم امك ثم ابوك
-
ابششر لاتعصب .. local Positions = { {'Name',-2371.50171 ,-673.10498 ,124.17433}, } GUIEditor = { gridlist = {}, button = {} } wnd = guiCreateWindow(324, 140, 394, 514, "الآنتقالات", false) guiWindowSetSizable(wnd, false) guiSetVisible ( wnd, false ) GUIEditor.button[1] = guiCreateButton(64, 439, 244, 65, "انتقال", false, wnd) guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") gr = guiCreateGridList(30, 72, 324, 363, false, wnd) guiGridListAddColumn(gr, "المكان", 0.9) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor( false ) else guiSetVisible ( wnd, true ) showCursor( true ) end end bindKey("F6", "down", OpenWin) for i,v in ipairs (Positions) do local row = guiGridListAddRow ( gr ) guiGridListSetItemText(gr,row,1,v[1],false,false) guiGridListSetItemData(gr,row,1,{ v[2],v[3],v[4] }) end addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then if ( guiGridListGetSelectedItem ( gr ) ~= -1 ) then local x,y,z = unpack(guiGridListGetItemData(gr,guiGridListGetSelectedItem ( gr ),1)) setElementPosition(getLocalPlayer(),x,y,z) setElementData(getLocalPlayer(),'x',x) setElementData(getLocalPlayer(),'y',y) setElementData(getLocalPlayer(),'z',z) end end end) addEventHandler('onClientPlayerWasted',root, function ( ) local x,y,z = getElementData(getLocalPlayer(),'x'),getElementData(getLocalPlayer(),'y'),getElementData(getLocalPlayer(),'z') setElementPosition(localPlayer,x,y,z) end)
-
العفو حيأك الله , انا معي كود الفري روم حق المأب , بس العذر والسموحة ماهو لي , وهو أطول من سطر و كلنت وسيرفر ..
-
local Positions = { {'Name',x,y,z}, } for i,v in ipairs (Positions) do local row = guiGridListAddRow ( gr ) guiGridListSetItemText(gr,row,1,v[1],false,false) guiGridListSetItemData(gr,row,1,{ v[2],v[3],v[4] }) end addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then if ( guiGridListGetSelectedItem ( gr ) ~= -1 ) then local x,y,z = unpack(guiGridListGetItemData(gr,guiGridListGetSelectedItem ( gr ),1)) setElementPosition(getLocalPlayer(),x,y,z) setElementData(getLocalPlayer(),'x',x) setElementData(getLocalPlayer(),'y',y) setElementData(getLocalPlayer(),'z',z) end end end) addEventHandler('onClientPlayerWasted',root, function ( ) local x,y,z = getElementData(getLocalPlayer(),'x'),getElementData(getLocalPlayer(),'y'),getElementData(getLocalPlayer(),'z') setElementPosition(getLocalPlayer(),x,y,z) end) جرب وردلي خبر ..
-
سهل تسوي edit box دي أكس guiCreateEdit guiGetText guiSetAlpha -- Event : 'onClientRender' dxDrawText dxDrawRectangle
-
addEventHandler('onClientGUIClick',root, function ( ) if ( source == pex ) then local veh = getPedOccupiedVehicle (localPlayer) if (veh) then if ( getVehicleOverrideLights(veh) ~= 2 ) then setVehicleOverrideLights(veh,2) outputChatBox("* تم تشغيل النور",0,255,0) else setVehicleOverrideLights(veh,1) outputChatBox("* تم إطفاء النور",255,0,0) end end end end )
-
يقفل السيأره ويفتحها لاكن لازم يكون دأخلها يعني لو طلع من الموتر ويرجع يفكه م ينفك !
-
بسوي لك الاكوآد وبرجبها .. وبرد لك خبر
-
هو ماقال لك ان فيه ارقمنتات ناقصه في SetVehicleLocked قألك في setVehicleLightState
-
مبدع بـ معنى الكلمة . م أقدر اقول شيء عن هاذا الابدأع
-
لو خيروك تحب امك ولا ابوك ؟
-
لول مبدع لاكن الشكل مقلد لـ رويأل ولا انت هو ؟
-
# واخر شيء # Created By MR.GRAND مع ان طلبك سهل تسويه بـ SQL
-
addEventHandler('onClientGUIClick',root, function ( ) if ( source == Locked ) then if ( getPedOccupiedVehicle(localPlayer) ) then if ( isVehicleLocked(getPedOccupiedVehicle(localPlayer)) ) then setVehicleLocked(getPedOccupiedVehicle(localPlayer),false) else setVehicleLocked(getPedOccupiedVehicle(localPlayer),true) end end end end ) جرب وشوف
-
chat1 = true addEventHandler("onClientGUIClick", root, function () if source == chat then chat1 = not chat1 showChat(chat1) end end )
-
سويها لاكن بدون لوكال يعني إحذف الوكال command = 'command to open window'