Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 16/02/19 in all areas

  1. هذي من احدى اللهجات حقت اهل نجد ومعناه انك معزوم عندي او ضيف عند اللي عزمك وتختلف اللهجات ف حياك الله عندنا مزغاب بكره
    2 points
  2. 1 point
  3. Server Side : addEventHandler( 'onPlayerCommand' , root , function( command ) outputConsole( table.concat( { command } , ' ' ) , source ) end )
    1 point
  4. موفق يا أستاذي ، صراحة السعر والله مو غالي بالنسبة لي
    1 point
  5. Testei aqui e tem sim. Você tem que colocar o retângulo dentro da função do playVideo. Depois do render da imagem do browser. function webBrowserRender () dxDrawImage (posX, posY, width, height, webBrowser, 0, 0, 0, tocolor(255,255,255,255), postGUI) dxDrawRectangle () -- Seu retângulo aqui. end
    1 point
  6. O correto, neste caso, é usar a função createBrowser. Esse browser não é "clicável", logo é perfeito para usar em vídeos e ela é DX. E, para fazer aparecer, basta usar um dxDrawImage acima de todos os outros elementos DX para que o vídeo fique atrás e o restante fique na frente. local browser = createBrowser( sW, sH, false, false ); dxDrawImage( 0, 0, sW, sH, browser ); @EDIT: Não use em hipótese alguma a função createBrowser dentro de um evento de renderização. O código acima foi apenas um exemplo.
    1 point
  7. Both of your crashes are related to anims. Do you use custom animations (IFP)? If you do, then they might be corrupt and I'd advise you to stop using it to find out, or have someone experienced with anims take a look at it/attempt to fix them up. Also, @Saml1er is interested to learn more about these particular crashes, so if you are using custom anims, it would be appreciated if you sent all of them (preferably along with your relevant crash dumps) to him in a forum PM.
    1 point
  8. addEventHandler("onClientConsole", localPlayer, function (text) local args = split(text, " ") -- split the text by spaces local command = table.remove(args, 1) -- remove the first word from the args table and put it into the "command" variable outputConsole(command) end ) This should work, but I haven't tested it. This is clientside code by the way. You can use onConsole on the server but I believe that won't trigger for commands handled by a command handler.
    1 point
  9. Não está. Veja esse vídeo e saiba tudo que vc precisa saber antes de postar aqui:
    1 point
  10. money = {} function verificarPag(player) local timer = getRealTime() local accName = getAccountName ( getPlayerAccount ( player )) if isObjectInACLGroup ("user."..accName, aclGetGroup("Mr")) then if timer.hour == 7 then --exports.Mr_Dxmessages:outputDx(player, "Seu pagamento está liberado , até as 08 horas! receba no /receber", "warning") money[player] = createPickup (1542, -1684, 14, 3, 1274, 0 ) else exports.Mr_Dxmessages:outputDx(player, "Você ainda não pode receber, somente as 08 horas!", "error") end end end addCommandHandler("receber", verificarPag) function receber (player) if source == money[player] then local timer = getRealTime() local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Mr") ) then if timer.hour == 7 then exports.Mr_Dxmessages:outputDx(player, "Você recebeu seu pagamento $500 ", "success") givePlayerMoney(player, 500) destroyElement(money[player]) end end end --addCommandHandler("receber", receber) addEventHandler ( "onPickupHit", resourceRoot, receber ) Tente assim. obs: não testei, qualquer erro me fale
    1 point
  11. Se quiser algo mais prático, recomendo guiCreateProgressBar que já vem pronta. Você só precisará da função guiProgressBarSetProgress para setar a quantidade dela cheia.
    1 point
  12. Cara, na própria Wiki da função útil PlayVideo já tem uma explicação dos códigos embed que vc coloca no link do youtube. /embed/ Use this on place of watch?v= normal url. This is a required code. (videoID) The video ID. This is a required code. autoplay=1 This will auto play the video, otherwise the player will only see the video thumbnail. This is a required code. controls=0 Hide the youtube's video controls and video progress bar. This and the following codes are all optional. disablekb=1 Disable keyboard video controls. showinfo=0 Hide the video title, watch later button and share button. rel=0 Disable related videos after the reproduction. Instead of showing them, it will show the video thumbnail. start=67 This will start the video on the time 1:07 instead of 0:00 by default. You can use any integer number here. end=72 This will stop the video on the time 1:12 instead of their end by default. You can use any integer number here. cc_load_policy=1 This will enable closed captions on the video if it have one. list=(playlist ID) If you will reproduce a playlist, you use this after the video ID. index=1 Only aplicable if you will reproduce a playlist. This will start the playlist on the second video. If you want to start on the third video, use 2 instead of 1 and so on. You can use any integer number here. color=white this will make the video progress bar white instead of red. There are not other colors. Only aplicable if you don't use controls=0 code.
    1 point
×
×
  • Create New...