Jump to content

RenanPG

Members
  • Posts

    186
  • Joined

Everything posted by RenanPG

  1. RenanPG

    help dxText

    If width and height is set to 0, that would simply make it not visible. Are you sure that would be of any help? If the worcBreak and clip is false, it will be visible.
  2. RenanPG

    help dxText

    Where you put _, _ are float arguments, probably is that problem, try using 0. dxDrawText ( text, x - 1, y - 1, 0, 0, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false ) --not this, cause it returns a nil value. dxDrawText ( text, x - 1, y - 1, _, _, tocolor ( 0, 0, 0, 155 ), scale, font, alignX, alignY, clip, wordBreak, false )
  3. Seu código parece estar correto, só o else if está errado o correto é elseif (tudo junto). Forma incorreta: http://i.imgur.com/6yzjqxT.png Forma correta: http://i.imgur.com/fwzVCBl.png
  4. O segundo argumento do exports.slothbot:setBotAttackEnabled() parece ser uma variável booleana (true/false). Não sei se essa função tem alguma coisa ligada ao uso da arma, mas testa isso aqui: exports.slothbot:setBotAttackEnabled(bot1, true)
  5. Bom, se você não conhece seus scripts criados ou editados, não posso fazer nada. o problema não é meu Agora eu conheço minhas criações e edições de longe vamos parar por aqui, porque já está saindo fora do assunto Engano seu amigo, reconhecer como? scripts baseados em GUI são extremamente simples, qualquer um pode criar e editar. E agora vamos voltar ao assunto do tópico, porque sem as devidas provas quem tá fazendo off-topic é você usando argumentos evasivos ao tema.
  6. @BaseadoSWD Posta a parte do script que não funciona. @#RooTs Não temos como provar se ele ta usando o seu freeroam vazado, porque existe FR GUIs editados de outros autores também.
  7. Hello, i want 30 millions dollars, a luxury house and also a Audi R8. I would recommend you do simple things in dx before creating components.
  8. @BaseadoSWD lá no meu post acabei escrevendo errado na hora, o formato é Hex(Hexadecimal), mas da pra usar também essa função do DNL, que converte o ARGB em Hex. string.format("FF%.2X%.2X%.2X", 255,0,0) -- Isso retornará em Hex. local r, g, b = 255, 0, 0 guiSetProperty(button, "NormalTextColour", string.format("FF%.2X%.2X%.2X", r, g, b))
  9. guiSetProperty(button, "NormalTextColour", "FF0000FF") guiSetProperty(button, "PushedTextColour", "FF0000FF") guiSetProperty(button, "HoverTextColour", "FF0000FF") Obs. As cores Hex nessa função não funcionam com o # no começo. E também de uma olhada nesse site que o DNL291 citou, ali tem todas as propriedades que você pode alterar nos componentes CEGUI. http://web.archive.org/web/20120706081430/http://cegui.org.uk/static/WindowsLookProperties.html
  10. You mean the resistance of the vehicle? setElementHealth(vehicle, 100) -- You can put values higher than 100 here. As 1000 for example.
  11. got it. the did he want to do very nice What do you mean?
  12. Use xXMADEXx's example, that you can add and remove cancelEvent.
  13. I didn't say you are lying, i'm supposing you are inventing it, but in my server and viper's server worked.
  14. Your creativity to invent a lame excuse is amazing, keep it up dude.
  15. I tested now, with three shoots the vehicle got exploded.
  16. It's your conclusion, not proved.
  17. -- server addEventHandler("onResourceStart", resourceRoot, function() for index, player in ipairs(getElementsByType("player")) do if(isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup("Admin"))) then setElementData(player, "player:isAdmin", true) end end end) -- client addEventHandler("onClientRender", root, function() for index, player in ipairs(getElementsByType("player")) do local isAdmin = getElementData(player, "player:isAdmin") if(isAdmin) then end end end This should work, just check your debugscript.
  18. this will not work, why the rhino takes no damage, except to flames Where did you read that?
  19. You mean sending to client if certain player is or not an admin?
  20. server-side addEventHandler("onVehicleDamage", getRootElement(), function() if(getElementModel(source) == 432) then setElementHealth(source, getElementHealth(source) - 100) end end)
  21. RenanPG

    ammo

    https://wiki.multitheftauto.com/wiki/GivePedWeapon "This function gives the specified weapon to the specified ped. This function can't be used on players, use giveWeapon for that."
  22. If it's not a heavy file, you can encrypt them using somehing like: https://wiki.multitheftauto.com/wiki/Base64Encode https://wiki.multitheftauto.com/wiki/Base64Decode addEventHandler('onClientResourceStart', resourceRoot, function() local img = fileOpen('img_encrypted.png') local pixels = base64Decode(fileRead(img, fileGetSize(img))) fileClose(img) local newImg = fileCreate("img.png") fileWrite(newImg, pixels) fileClose(newImg) image = dxCreateTexture("img.png") fileDelete("img.png") end)
  23. Finalmente baniram esses dois favelados, chega de off-topic. server-side veh = createVehicle( 497, 1562.2846679688, -1613.2075195313, 13.3828125, 0, 0, 0) addEventHandler("onVehicleEnter", veh, function(client, seat) if(seat == 0) then if(getPlayerTeam(client)) and (getPlayerTeam(client) == getTeamFromName("PM")) then setVehicleEngineState(source, true) else setVehicleEngineState(source, false) outputChatBox("Somente PMs são autorizados a utilizar este veiculo!", client, 255, 255, 255, true) end end end)
  24. I know more what is OOP http://en.wikipedia.org/wiki/Object-ori ... rogramming
  25. Adiciona na pasta resources. http://www.mediafire.com/download/h96y3 ... pawner.zip
×
×
  • Create New...