Leaderboard
Popular Content
Showing content with the highest reputation on 20/01/19 in all areas
-
Team Ms6oL ~ KSA ~ فريق مسطول تعريف لـ السيرفر قريب ان شاء الله راح يفتح سيرفر فريق مسطول للهجولة وبكون فيه حصريات من تصميم مجسمات مواتر , مابات , الخ يميزنا ع غيرنا .. اصحاب السيرفر : Task - ^^ صاحب التصاميم و تعديل و تحويل ~ الخ ..و الصور من تصويرهـ Mr.SAAD ملاحظة : يمكن الصور جودتها شوي ضعيفه سبب تصوير من جوال ثم رفعتها ع موقع خفف جودهـ .. # نبدا بـ بسم الله الرحمن الرحيم وفيه المزيد من المواتر و المجسمات الثانيهة .. بطرحها بالموضوع قريب حبه حبه ولي يبي ينظم لـ قروب خاص بـ سيرفر نطرح فيه الجديد من مواتر و الخ قبل م نطرحه هنا يتواصل معي بالخاص و يرسل رقمه وبضيفه هذا و بتوفيق للجميع ي رب2 points
-
That really depends on your user-case. When requesting the browser, you will be starting a web browser application inside of your game. This cost more performance than just rendering a rectangle with dx. But rendering 1000 elements, yes the browser will be more optimised to render multiple elements better/faster. The browser can actually do have influence on the FPS, if the website is not optimised or when there are too many browser windows created. The question you actually want to ask is: "Which is better for me?" And you are the only one able to answer that question. So a few of my recommendations: Use dx: When displaying just a few elements at a location When you do not want to spend a lot of time on a project. Setting up and maintaining a browser requires more code. For optimised textures. Use the browser: When rendering tons of elements. When using a lot of (CSS) animating. When you understand CSS and HTML (required). When handling UI/UX browser events based (Javascript required). Other things: Do not create too many browsers windows. Stop the browser from rendering, when not used: https://wiki.multitheftauto.com/wiki/SetBrowserRenderingPaused A browser renders content like this:2 points
-
2 points
-
1 point
-
Você não passou o jogador pra função depois de 1 no fim da função. Você pode fazer assim que será mais fácil: setTimer( fadeCamera, 5000, 1, source, true, 1.0 )1 point
-
Well, for example, on my machine CEF inside MTA lags the :~ out, so it depends. dxDraw is faster for me most of the time, but CEF is waay better for doing UI stuff.1 point
-
1 point
-
1 point
-
الخطا هنا خليها كذا function markerhit (player,dim) if ( getElementType( player ) == 'player' and dim ) then triggerClientEvent( player , 'triggerPanel' , player) end ; end addEventHandler("onMarkerHit",gatemarker,markerhit)1 point
-
يا مرحبا , تشرفت بالإنضمام لمجتمع العرب و أتمنى أن أفيد و أستفيد معكم1 point
-
ههههههههههههههههههههههههههههههههههههههههههههههههههههه @N3xT تم افادته رجاء آقفل الموضوع1 point
-
function onPedRender() local ped = getElementsByType ( "ped" ) for theKey, thePed in ipairs(ped) do if getElementData(thePed, "bankguard") then local x ,y, z = getElementPosition(thePed) local sx, sy, sz = getElementPosition(localPlayer) local Dist = getDistanceBetweenPoints3D (x, y, z, sx, sy, sz) if(isLineOfSightClear(x, y, z, sx, sy, sz, true, false, false, false, false, false)) then setPedControlState(thePed, "fire", true) setPedAimTarget(thePed, sx, sy, sz) StartBot () else setPedControlState(thePed, "fire", false) end end end end addEventHandler("onClientPedDamage", root, onPedRender) function StartBot () if isEventHandlerAdded("onClientRender", getRootElement(), onPedRender) then return end addEventHandler("onClientRender", root, onPedRender) end function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end Deve ajudar. Caso um ped for atingido todos os Bot irá revidar contra o jogador.1 point
-
1 point
-
Muchas gracias @Alexs. Si, desde luego conozco muy bien esa comptencia sucia pero lo importante es enfocarse en los objetivos de la comunidad y no darle importancia a lo demás. Recibimos ataques constantemente en nuestro VPS (sin afectarnos) y SPAM de otros servidores que no voy a mencionar para no rebajarme a su mismo nivel de idiotez pero nuestros objetivos y metas son claros: Formar una comunidad fuerte libre de toxicidad y malos rollos ofreciendo a la vez un agradable entorno de juego y posibilidad de disfrutar de buenos sistemas. Gracias nuevamente. Se agradecen los mensajes de los de la vieja escuela1 point
-
Salut ! Je ne connais pas trop de serveurs MTA mais il me semble que UMV-RP à reouvert ses portes. Après c'est du roleplay, il manque un petit peu de serveur FR c'est vrai. Bonne chance pour ton aventure !1 point
-
MUITOOOOO OBRIGADOOOOOOOOO MANOO ta funcionando perfeitamente, agora é só colocar umas frescura e ser feliz!!! Só não fecha o tópico ainda pq como vou arrumar umas frescura pode ser que eu consiga quebrar o script e ele parar de funfa kaksskks1 point
-
1 point
-
-- Segunda parte do trabalho. function job( hitElement, dim ) if getElementType(hitElement) == "vehicle" and dim then local player = getVehicleOccupant( hitElement, 0 ) if table[player] and table[player]["car"] and hitElement == table[player]["car"] then destroyElement(table[player]["marker"]) -- Como eu posso recriar a marker para o jogador voltar para o ammu-nation?? --[[ Isso não funcionou :/ table[hitElement]["marker"] = createMarker(1364.7564697266, -1285.5583496094, 13, "cylinder", 2, 255, 0, 0, 255, source) outputChatBox("Volte para o ammu-nation") addEventHandler("onMarkerHit", table[source]["marker"], endJob) ]] else outputChatBox("Este não é o veículo que você recebeu!!") end end end hitElement -> veículo Erro: table[hitElement]["marker"] = createMarker(1364.7564697266, -1285.5583496094, 13, "cylinder", 2, 255, 0, 0, 255, source) Aonde está hitElement deveria ser player. E em source também. addEventHandler("onMarkerHit", table[source]["marker"], endJob) Aqui também, source vai retornar a fonte do evento que é a marker.1 point
-
1 - Isto dentro da função pegartrab4: addEventHandler( "onVehicleStartEnter", veh[source], function ( player ) if veh[player] ~= source then cancelEvent() end end ) local player = source addEventHandler( "onVehicleExplode", function() if veh[player] and source == veh[player] then destroyElement (veh[player]) veh[player] = nil end if carga[player] and source == carga[player] then destroyElement (carga[player]) carga[player] = nil end end ) 2 - : addEventHandler( "onPlayerQuit", function() if veh[source] then destroyPlayerVehicles( source ) end end ) function sair4 (vehicle) if eventName == "onPlayerVehicleExit" and veh[source] and vehicle == veh[source] then destroyPlayerVehicles( source ) end if (veh[source]) and isElement(veh[source]) then destroyPlayerVehicles( source ) setElementVisibleTo ( blipfim4, source, false ) setElementVisibleTo ( entregartrab4, source, false ) outputChatBox ('#ffffffVocê saiu do veículo e perdeu o trabalho.', source, 255, 255, 255, true) end end addEventHandler ("onPlayerVehicleExit", root, sair4) addEventHandler ("onPlayerWasted", root, sair4) function destroyPlayerVehicles( p ) if p then if (veh[p]) and isElement(veh[p]) then destroyElement (veh[p]) veh[p] = nil end if (carga[p]) and isElement(carga[p]) then destroyElement (carga[p]) carga[p] = nil end end end1 point
-
'oldVehicle' não está retornando um elemento, que deveria ser o veículo. Isto irá corrigir a mensagem de erro: -- set vehicle owner function cl_SetVehicleOwner ( theVehicle, thePlayer ) local oldVehicle = getElementData ( thePlayer, "cl_ownedvehicle" ) or false if isElement(oldVehicle) then -- unlock old car removeElementData ( oldVehicle, "cl_vehicleowner" ) removeElementData ( oldVehicle, "cl_vehiclelocked" ) removeElementData ( oldVehicle, "cl_enginestate" ) setVehicleLocked ( oldVehicle, false ) -- set vars for new car end setElementData ( theVehicle, "cl_vehicleowner", thePlayer ) setElementData ( theVehicle, "cl_vehiclelocked", false ) setElementData ( thePlayer, "cl_ownedvehicle", theVehicle ) setElementData( theVehicle, "cl_enginestate", true )1 point
-
Stop making random RP servers if you can't handle them please1 point
-
1 point
-
1 point
-
1 point
-
local id = exports["ids"]:getPlayerID(thePlayer) That's how you'll get the player id.1 point