Popular Content

Showing content with the highest reputation on 28/06/20 in all areas

  1. 2 points
    Apenas faltou : function formatNumber ( number ) local formatar = number while true do formatar, k = string.gsub(formatar, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k == 0 ) then break end end return formatar end -- .. código abaixo.
  2. 2 points
    tente: local Dinheiro = (getPlayerMoney(getLocalPlayer())) local DinheiroF = formatNumber(Dinheiro) local Banco = getElementData(localPlayer,"Banco") or 0 local DinheiroB = formatNumber(Banco) local procurado = getPlayerWantedLevel(getLocalPlayer()) dxDrawText(Empregos, screenW - 140 - 10, 15 + 200, screenW - 328 - 10 + 315, 30, tocolor(255, 255, 255, 255), 0.9, Fonte, "center", "center", false, false, false, false, false) dxDrawText(DinheiroF, screenW - 328 - 10, 10 + 183, screenW - 350 - 10 + 190, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true ) dxDrawText(DinheiroB, screenW - 328 - 10, 10 + 183, screenW - 321 - 10 + 312, 20, tocolor ( 255, 255, 255, 255 ), 0.7, Fonte, "right", "top", false, false, false, true )
  3. 1 point
    Hello user As in the subject, I will make a server on the Multi Theft Auto + platform and prepare it for the ready game. I have been programming in Lua for many years. I approach each job individually and perform it precisely. I make a quote after receiving a list of resources + a description of what and how it should look like. Signing a contract for any back-up in case of fraud is an option. (If you are from around Piaseczno, I can drive up to discuss the details) Payments are accepted only by bank transfer I prefer telephone contact More information and portfolio on the contact email: forall.gaming@onet.pl (I reply almost immediately) I put the post at the user's request At the user's request, I add an additional form of contact. GG: 71285129 In addition, I can put the site / forum on the IPS engine fully legally, because I have a license. Cheap, please contact me (contact given above) My work: https://imgur.com/a/Wd6F1MT Burczus#1637
  4. 1 point
    É uma função útil. E os parâmetros dela são um pouco diferentes do dxDrawText. Vc esqueceu de declarar a espessura da borda no primeiro argumento.
  5. 1 point
  6. 1 point
    Totally forgot about IsInsideColShape function, thank you so much. You saved my day. It solved my problem
  7. 1 point
    uhh, verdade, esqueci de por não entendi, tem algum exemplo?
  8. 1 point
    yok kanka o da olmadı başka şekilde düzelttim farklı kod satırları vs ekleyerek çözdüm problemi admin fix konuyu kapatalım
  9. 1 point
    no resouce, o problema se encontra aqui : --> Valor : local housesLimit = tonumber ( get ( "maxHouses" ) ) or 2 --linha 164 : if ( #getAccountHouses ( accountName ) >= housesLimit ) then --> Problema : ">=", o que significa? se for maior, ou igual. --> Então se a pessoa tentar compra a 2ª casa, retornará. Solução : if ( #getAccountHouses ( accountName ) > housesLimit ) then --> Apenas deixa, se for acima do valor.
  10. 1 point
    UPDATE: -Smoke grenades will now explode after 5 seconds and eject smoke that is synced from the creator to all other players to prevent smoke desync -Fixed non-working mortar smoke shells -Fixed satchel detonator not working when the player is sitting in a vehicle -Satchels can now be detonated with any weapon equipped (No longer needed to equip satchels specifically) -Satchels can now be "defused" by shooting them or by exploding something in their proximity (Beware, satchels have no collision, you have to hit the surface that is next to the satchel) -Players can no longer switch first person mode while reviving to cancel the revive animation -Changed default key for "Sonar Ping" to "J" -Changed default key for "Toggle vehicle light" to "O" -Changed default key for "Detonate satchels" to "P" -Added new key "Call artillery", default key is "lalt" (I separated artillery call from satchel detonator) I will soon upload the new maps Westerplatte and Budapest. I wont create a new post for that and i dont know when they will be added exactly. Also we have currently a problem with missing killer information when a satchel explodes. I will fix this soon.
  11. 1 point
    You could also use this function. https://wiki.multitheftauto.com/wiki/IsInsideColShape https://wiki.multitheftauto.com/wiki/GetElementBoundingBox If you run it 8x times for each corner, per object = 16x. Then it will detect most of the collisions, except when no corners are inside each other. There is also something by crystamv. https://web.archive.org/web/20160507103732/http://crystalmv.net84.net/pages/scripts/server_coldata.php But that one only supports peds and vehicles. But you could modify it to also support objects
  12. 1 point
    onPlayerWasted getPlayerTeam getTeamName spawnPlayer
  13. 1 point
    This quickguide covers how you can remove objects like night lights and wires. SAMP editor method To install SAMP editor, simply drag and drop the packaged contents into your GTA SA installation. Run the application. https://www.moddb.com/downloads/san-andreas-multiplayer-map-editor Code for removing object in video removeWorldModel ( 16745, 1, 392.9141, 1511.5625, 21.5859 ) ^This is for the script.Lua file <meta> <script src="script.Lua" type="server" /> </meta> ^This is for the meta.xml file For those who want to load it into a .map file, the below code can be edited with your coordinates, ID and radius. <removeWorldObject id="removeWorldObject (objectname) (1)" radius="100" interior="0" model="9934" posX="-1724" posY="765" posZ="24" rotX="0" rotY="0" rotZ="0"></removeWorldObject> ^This is for the .map file if you rather use map editor format Note: SAMP editor doesn't want to run if MTA (gta exe) is already running. Therefore you'll want to add SAMP editor into a separate gta sa installation. I use 3 (1 for playing, 1 for samp editor, 1 as clean backup) on my PC. This requires 12gb disk space. This lets you boot up MTA and SAMP editor without conflicting issues. Prineside method Prineside is a site containing IPL and IDE information about objects, it also serves a GTA map with position pinpoint functionality, allowing you to get the object ID easily by clicking a spot in the map. Use Prineside's Model search by location to pinpoint the location closest to the object of interest. This generates a list of objects within 500 meters from the pin, closest to farthest. Clicking an object page gets you its object name and ID. At the bottom of an object page you can get the position export. Repeat the steps from SAMP editor method for adding the coordinates to the code. Transcluent/transparent objects like shadows, telewires and small flowers may not have any clear thumbnail, in which case it's actually easier to spot them as they're the ones with an empty thumbnail. https://wiki.multitheftauto.com/wiki/RemoveWorldModel https://dev.prineside.com/en/gtasa_samp_model_id/
  14. 1 point
    You must have broken something in your acl.xml file. Restore the original file and the problem will go away. (https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/mods/deathmatch/acl.xml)
  15. 1 point
    local myShader_raw_data = [[ texture Tex0; technique simple { pass P0 { Texture[0] = Tex0; } } ]] local theTechnique = dxCreateShader(myShader_raw_data) local theTechniqueon = dxCreateShader(myShader_raw_data) local texture = dxCreateTexture("vehlights.png") local texture_on = dxCreateTexture("vehlightson.png") dxSetShaderValue(theTechnique,"Tex0", texture) dxSetShaderValue(theTechniqueon,"Tex0", texture_on) -- replace everywhere, not only for a specific element (don't use 3rd arg) engineApplyShaderToWorldTexture(theTechnique, "vehiclelights128") engineApplyShaderToWorldTexture(theTechniqueon, "vehiclelightson128")
  16. 1 point
    OK so after many requests from people asking me to install discord bots to their servers I have decided to make the simplest tutorial on setting up a bot for your servers. [NOTE]: THIS IS A VPS TUTORIAL. IF YOUR SERVER ISN'T RUNNING ON A VPS THIS WILL NOT WORK FOR YOU UNLESS YOU UNDERSTAND HOW NODE.JS WORKS. Part 1: Bot creation Part 2: Files Configuration Part 3: SSH commands That should be all now go have fun annoying players in your server. Some feedback would be appreciated Good luck