Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 18/03/19 in all areas

  1. @Overkillz dxSetRenderTarget( myRenderTarget, true ) Syntax: bool dxSetRenderTarget ( [ element renderTarget, bool clear = false ] ) The stuff you have drawn before on the paper, will not just clear itself. A render target is like a piece of paper of the REAL WORLD. Once you have drawn on it, you need an eraser to clean it. There are two things you can do. Clear the render target Or paint it black again with a rectangle. If it is just text on it, clearing the render target will do the job. But if you have multiple components on it, which you do not want to re-draw very frame on the render-target, then it might be handy to paint selected area's black. See also blend mode: overwrite : The source textures are overwritten. This can be useful for clearing render targets https://wiki.multitheftauto.com/wiki/DxSetBlendMode (Haven't used it before.) Also keep in minder that you can also use two render targets. One you can update when the text changes and one to move the frame.
    1 point
  2. Eu me perguntava por que alguns membros do fórum usam citação no primeiro post (tem alguns membros antigos que fazem isso ainda). Mas não tinha pensado sobre o formato da página no celular. É verdade que isso não é regra do fórum; o usuário não está infringindo nada fazendo isso. O motivo de alguns no fórum ser contra isso deve ser por pensar que a citação foi usada desnecessariamente, quando poderia só responder da forma convencional. Quanto ao aviso do @Lord Henry - enquanto é algo que possa ser bem-vindo no fórum, ao mesmo tempo não é tanto assim por não se tratar de um post da moderação. É recomendado evitar esses tipos de conduta agindo como que um moderador (nas regras do fórum isso é mencionado como backseat moderation), e em vez disso deixar o aviso com alguém com tal cargo, reportando o post ou contatando diretamente algum Staff sobre o que entende estar errado ou demais coisas. Realmente usar citação desnecessariamente não é um modo correto, mas também deve-se ter cuidado para não usar esses erros comuns para fazer posts replicando-os como alguém com cargo - isso já foi destacado nas regras global, use o botão report - é o melhor a se fazer. Ou, também pode falar com o membro por privado e informá-lo sobre o erro.
    1 point
  3. حياك يا عسل تنور هههههههه
    1 point
  4. وعليكم السلام من زمان عنك يا ولكم نورت المنتدى والله استمر سكربت جيد جداً اهنيك
    1 point
  5. أحسنت , كمل ولا توقف
    1 point
  6. مشكور حب تسلمء من ذوفك..♥ ويآآك شكرا يا مبدعع .# ويآك يارب ♥
    1 point
  7. Ah yea true, my bad. But afaik that doesn't work for new joined players. Experimental. local normaliseVisibility = createElement("normaliseVisibility") addEventHandler("onPlayerJoin", root, function () setElementVisibleTo(normaliseVisibility, source, false) end) markergobeach = createMarker ( 2945.4387207031, -2053.7338867188, 2.8984375, "cylinder", 2, 255, 0, 0, 50, thePlayer ) BlipDiver = createBlipAttachedTo ( markergobeach , 41, 2, 255, 0, 0, 255, 0, 99999.0, thePlayer ) setElementParent(markergobeach, normaliseVisibility) setElementParent(BlipDiver, normaliseVisibility)
    1 point
  8. @IIYAMA he did use the last args of those functions which sets the visibility to thePlayer
    1 point
  9. It's normal, the event is triggered only when you hit the colshape bounds. In your use case, you are already in the car's col, so no new hit event is detected. You can save the interaction colshapes that are 'active' for the player by using tables.
    1 point
  10. When OnClientColShapeLeave is triggered you could check if the player is in any other colshape.
    1 point
  11. 1 point
  12. جارحتك يا بيضة ؟ ??
    1 point
  13. ابدااع × ابداع بالتوفيق لك يا قلبي
    1 point
  14. سكربت رائع بالتوفيق لك حبيبي
    1 point
  15. تسلم حبيبي حبيبي قلبي تسلم شكرا لك حبيبي
    1 point
  16. coroutines مالي خبرة في بس جرب دا function initTraffic() last_yield = getTickCount() initTrafficMap() loadPaths() calculateNodeLaneCounts() loadZOffsets() initAI() initTrafficGenerator() traffic_initialized = true end function startTrafficInitialization() traffic_initialization = coroutine.create(initTraffic) keepLoadingTraffic() end addEventHandler("onResourceStart",resourceRoot,startTrafficInitialization) function keepLoadingTraffic() if traffic_initialized then traffic_initialized = nil last_yield = nil return end if( coroutine.status( traffic_initialization ) ~= "dead" ) then coroutine.resume(traffic_initialization) -- الديبق بهذا السطر -- cannot resume dead coroutine [string "?"] setTimer(keepLoadingTraffic,50,1) end end function checkThreadYieldTime() local this_time = getTickCount() if this_time-last_yield >= 4000 then coroutine.yield() last_yield = this_time end end
    1 point
×
×
  • Create New...