SaedAmer Posted May 10, 2016 Posted May 10, 2016 السلام عليكم هنا في كود السهم السهم بيظهر بس بعيد عن السيارة لما اعمل ازالة التحديد للشيك بوكس مش بيختفي و الكلام يتكرر كلنت -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) سيرفر --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) صورة #
Me[Z]oO Posted May 10, 2016 Posted May 10, 2016 -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) سيرفر --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end ) Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
Abdul KariM Posted May 11, 2016 Posted May 11, 2016 " Timer " الكود الي انت طارحه كله مافيه كلمة فـ كيف نحل لك الخطأ وانت معطينا اكواد غير الي نشوفه بالديبوق < هع > [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
SaedAmer Posted May 11, 2016 Author Posted May 11, 2016 " Timer " الكود الي انت طارحه كله مافيه كلمة فـ كيف نحل لك الخطأ وانت معطينا اكواد غير الي نشوفه بالديبوق < هع > الكود الي بالدي بق ده كود الوان عشوائية علي العموم الاكواد اهه كلنت -- Client Side local key = "o" GUIEditor.window is delete function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end addEventHandler( 'onClientGUIClick', root, function() local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local ID = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if (source == GUIEditor.button[1]) then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[2]) then triggerServerEvent("DestroyMyVehicle", localPlayer) elseif (source == GUIEditor.button[5]) then triggerServerEvent( 'WVehicleToMe', localPlayer ) elseif (source == GUIEditor.button[4]) then triggerServerEvent( 'WMEToVehicle', localPlayer ) end end ) addEventHandler( 'onClientGUIClick', root, function() if (source == GUIEditor.button[6]) then guiSetVisible( GUIEditor.window[1], false) guiSetInputEnabled(false) showCursor(false) outputChatBox('[RentSystem]: تم قفل لوحة نظام الاستئجار ',255,0,0,true ) end end ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) end end ) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) addEventHandler('onClientGUIClick',root,function () if source == GUIEditor.checkbox[4] then triggerServerEvent('VehicleDamageProof',localPlayer) end end) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) setTimer(function() guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 50, 0) server side vehicle = {} --Server Side addEvent('SpawnMyVehicle', true) addEventHandler( 'SpawnMyVehicle', root, function ( ID ) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local SerialPlayer , x, y, z = getPlayerSerial(source) , getElementPosition(source) vehicle[source] = createVehicle( tonumber(ID), x + 2, y + 2, z + 1) setElementData(vehicle[source],'VehicleSerial',SerialPlayer) warpPedIntoVehicle ( source, vehicle[source] ) outputChatBox('[RentSystem]: مرحبا بك في سيارتك ', source ,0,255,0,true ) end ) addEvent( 'DestroyMyVehicle', true ) addEventHandler( 'DestroyMyVehicle', root, function ( ) if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لازالتها", source, 255, 0, 0, true) else if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) outputChatBox('[RentSystem]: تم ازالة سيارتك بنجاح ', source ,0,255,0,true ) end end end ) addEvent( 'WVehicleToMe', true ) addEventHandler( 'WVehicleToMe', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لسحبها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(source) setElementPosition(vehicle[source], x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سحب سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEvent( 'WMEToVehicle', true ) addEventHandler( 'WMEToVehicle', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لنقلك لها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(vehicle[source]) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEventHandler("onPlayerQuit",root, function () if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) end end ) addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer[player] = setTimer(function( pla ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,100 ,player) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end ) addEvent('VehicleDamageProof',true) addEventHandler('VehicleDamageProof',root,function () local vehicle = getPedOccupiedVehicle ( source ) if vehicle then isProof = isVehicleDamageProof(vehicle) setVehicleDamageProof(vehicle, not isProof) outputChatBox(isProof and "تم حماية السياره من الانفجار" or "تم فك الحمايه") end end) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) --Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end )
Me[Z]oO Posted May 11, 2016 Posted May 11, 2016 -- Client Side local key = "o" GUIEditor.window is delete function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end addEventHandler( 'onClientGUIClick', root, function() local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local ID = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if (source == GUIEditor.button[1]) then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[2]) then triggerServerEvent("DestroyMyVehicle", localPlayer) elseif (source == GUIEditor.button[5]) then triggerServerEvent( 'WVehicleToMe', localPlayer ) elseif (source == GUIEditor.button[4]) then triggerServerEvent( 'WMEToVehicle', localPlayer ) end end ) addEventHandler( 'onClientGUIClick', root, function() if (source == GUIEditor.button[6]) then guiSetVisible( GUIEditor.window[1], false) guiSetInputEnabled(false) showCursor(false) outputChatBox('[RentSystem]: تم قفل لوحة نظام الاستئجار ',255,0,0,true ) end end ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) end end ) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) addEventHandler('onClientGUIClick',root,function () if source == GUIEditor.checkbox[4] then triggerServerEvent('VehicleDamageProof',localPlayer) end end) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) setTimer(function() guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 50, 0) server side vehicle = {} --Server Side addEvent('SpawnMyVehicle', true) addEventHandler( 'SpawnMyVehicle', root, function ( ID ) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local SerialPlayer , x, y, z = getPlayerSerial(source) , getElementPosition(source) vehicle[source] = createVehicle( tonumber(ID), x + 2, y + 2, z + 1) setElementData(vehicle[source],'VehicleSerial',SerialPlayer) warpPedIntoVehicle ( source, vehicle[source] ) outputChatBox('[RentSystem]: مرحبا بك في سيارتك ', source ,0,255,0,true ) end ) addEvent( 'DestroyMyVehicle', true ) addEventHandler( 'DestroyMyVehicle', root, function ( ) if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لازالتها", source, 255, 0, 0, true) else if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) outputChatBox('[RentSystem]: تم ازالة سيارتك بنجاح ', source ,0,255,0,true ) end end end ) addEvent( 'WVehicleToMe', true ) addEventHandler( 'WVehicleToMe', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لسحبها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(source) setElementPosition(vehicle[source], x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سحب سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEvent( 'WMEToVehicle', true ) addEventHandler( 'WMEToVehicle', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لنقلك لها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(vehicle[source]) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEventHandler("onPlayerQuit",root, function () if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) end end ) addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer[pla] = setTimer(function( pla ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,100 ,pla) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end ) addEvent('VehicleDamageProof',true) addEventHandler('VehicleDamageProof',root,function () local vehicle = getPedOccupiedVehicle ( source ) if vehicle then isProof = isVehicleDamageProof(vehicle) setVehicleDamageProof(vehicle, not isProof) outputChatBox(isProof and "تم حماية السياره من الانفجار" or "تم فك الحمايه") end end) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) --Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
Me[Z]oO Posted May 11, 2016 Posted May 11, 2016 دي بق ؟ Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
Me[Z]oO Posted May 11, 2016 Posted May 11, 2016 -- Client Side local key = "o" GUIEditor.window is delete function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) for id = 400, 611 do if getVehicleNameFromModel(id) ~= "" then local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, getVehicleNameFromModel(id), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(id), false, false) end end addEventHandler( 'onClientGUIClick', root, function() local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local ID = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if (source == GUIEditor.button[1]) then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) elseif (source == GUIEditor.button[2]) then triggerServerEvent("DestroyMyVehicle", localPlayer) elseif (source == GUIEditor.button[5]) then triggerServerEvent( 'WVehicleToMe', localPlayer ) elseif (source == GUIEditor.button[4]) then triggerServerEvent( 'WMEToVehicle', localPlayer ) end end ) addEventHandler( 'onClientGUIClick', root, function() if (source == GUIEditor.button[6]) then guiSetVisible( GUIEditor.window[1], false) guiSetInputEnabled(false) showCursor(false) outputChatBox('[RentSystem]: تم قفل لوحة نظام الاستئجار ',255,0,0,true ) end end ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) end end ) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) addEventHandler('onClientGUIClick',root,function () if source == GUIEditor.checkbox[4] then triggerServerEvent('VehicleDamageProof',localPlayer) end end) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) setTimer(function() guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 50, 0) server side vehicle = {} --Server Side addEvent('SpawnMyVehicle', true) addEventHandler( 'SpawnMyVehicle', root, function ( ID ) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local SerialPlayer , x, y, z = getPlayerSerial(source) , getElementPosition(source) vehicle[source] = createVehicle( tonumber(ID), x + 2, y + 2, z + 1) setElementData(vehicle[source],'VehicleSerial',SerialPlayer) warpPedIntoVehicle ( source, vehicle[source] ) outputChatBox('[RentSystem]: مرحبا بك في سيارتك ', source ,0,255,0,true ) end ) addEvent( 'DestroyMyVehicle', true ) addEventHandler( 'DestroyMyVehicle', root, function ( ) if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لازالتها", source, 255, 0, 0, true) else if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) outputChatBox('[RentSystem]: تم ازالة سيارتك بنجاح ', source ,0,255,0,true ) end end end ) addEvent( 'WVehicleToMe', true ) addEventHandler( 'WVehicleToMe', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لسحبها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(source) setElementPosition(vehicle[source], x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سحب سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEvent( 'WMEToVehicle', true ) addEventHandler( 'WMEToVehicle', root, function() if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لنقلك لها", source, 255, 0, 0, true) else local x, y, z = getElementPosition(vehicle[source]) setElementPosition(source, x, y, z) warpPlayerIntoVehicle(source, vehicle[source]) outputChatBox('[RentSystem]: تم نقلك الي سيارتك بنجاح ', source ,0,255,0,true ) end end ) addEventHandler("onPlayerQuit",root, function () if vehicle[source] and isElement(vehicle[source]) then destroyElement(vehicle[source]) end end ) addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer = setTimer(function( ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,0) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 3, zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) end ) addEvent('VehicleDamageProof',true) addEventHandler('VehicleDamageProof',root,function () local vehicle = getPedOccupiedVehicle ( source ) if vehicle then isProof = isVehicleDamageProof(vehicle) setVehicleDamageProof(vehicle, not isProof) outputChatBox(isProof and "تم حماية السياره من الانفجار" or "تم فك الحمايه") end end) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) --Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
iMr.SFA7 Posted May 11, 2016 Posted May 11, 2016 في التايمر vehicle عـرف متغـير الـ "A Year from Now You May Wish You Had Started Today"
SaedAmer Posted May 11, 2016 Author Posted May 11, 2016 المود اهه الباس خاص http://up.top4top.net/downloadf-131dajo1-rar.html الملف بصيغة rar عشان محدش يعرف يستخدم المود
Me[Z]oO Posted May 11, 2016 Posted May 11, 2016 طيب تمام بشوفه , Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
iMr.SFA7 Posted May 11, 2016 Posted May 11, 2016 أخوي وش ذا؟ GUIEditor.window is delete !الي بسطر 59 الكلنت "A Year from Now You May Wish You Had Started Today"
Me[Z]oO Posted May 11, 2016 Posted May 11, 2016 أخوي وش ذا؟ GUIEditor.window is delete !الي بسطر 59 الكلنت هي الي خلتني اغسل يدي 4 مرات ض وكمان في خرابيط بالتايمر 100,100,pla) ??? المهم عطيتك المود خاص اقبله Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
SaedAmer Posted May 11, 2016 Author Posted May 11, 2016 المود تمام بس فيب مشاكل صغيرة اولا الكلام يتكرر في الشات + شوف الصور
MR.GRAND Posted May 13, 2016 Posted May 13, 2016 الين ماتخلص الأملاك حقك يلزملك تفتح 100 موضوع زيادهةء My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
SaedAmer Posted May 13, 2016 Author Posted May 13, 2016 الين ماتخلص الأملاك حقك يلزملك تفتح 100 موضوع زيادهةء
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now