Search the Community

Showing results for tags 'objects'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 13 results

  1. Na verdade é bem simples por meio de código. Vc só precisa saber o ID do objeto e informar uma coordenada bem próxima ao objeto, não precisa ser exatamente no centro do objeto. Para descobrir o ID de um objeto que não é selecionável, dai é algo mais complexo que exige ferramentas externas. Para isso, vamos no site http://dev.prineside.com e clicamos no botão Model Search by Map Position. Após selecionada a posição no mapa, ele vai mostrar todos os objetos (selecionáveis e não selecionáveis) em um raio de 500 metros, em ordem dos mais próximos para os mais distantes. Na lista que aparecer, encontre o objeto que você deseja remover e anote o ID desse objeto. Descobrimos o ID do objeto, e agora? Agora já passou a parte mais difícil, o resto é programar um script básico de remoção de objetos por ID. Para isso vamos usar a função RemoveWorldModel. Essa função é bem simples de se usar, basta informar o ID do objeto a ser removido, o raio cuja remoção será aplicada e as coordenadas do ponto onde vai começar a remoção. Se você quiser restaurar o objeto quando o script for desligado, use RestoreWorldModel. Ideal para colocar em scripts de mapas, casas ou bases. O script funciona tanto em server-side quanto em client-side, mas em geral utiliza-se server-side. O Script deve ficar como esse: function removeBagulho () removeWorldModel (5681, 15, 1911.3, -1776.25, 13.38) --Remove o objeto do lava-jato próximo ao posto de LS quando o resource é iniciado. end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), removeBagulho) function restauraBagulho () restoreWorldModel (5681, 15, 1911.3, -1776.25, 13.38) --Restaura o objeto quando o resource é desativado. end addEventHandler ("onResourceStop", getResourceRootElement(getThisResource()), restauraBagulho) Esse script vc adiciona junto com o resource do seu mapa. Você pode optar por deixar isso em um script separado ou deixar junto com algum script que vc já tenha no seu mapa por exemplo scripts de portões, server-side. Vlw, flw. Deixe seu LIKE se ajudou você. Dúvidas comente abaixo.
  2. i have object with txd and dff and ifp files i need to add it on my server so how to make animated object Please Help Me Download Files
  3. First: I'm sorry for my bad English, I'm using Google translator. Hello MTA community. I'm new to this forum, I do not know anything about MTA script, I used SAMP and it really is very different from the programming language of GameMode. I would like if you can tell me how I can add a new texture / object to my MTA server. For example, this Internal Bank LS mod. https://www.gtainside.com/en/sanandreas/maps/113333-banco-interior-ls/ Where should I put the files in the "data" folder? Where should I put the files in the folder "gta3.img" ?? Also, where and how do I put the coordinates of the objects. Please, be patient, I am new, I practically do not know anything about MTA server. If you have a guide or tutorial (not the MTA wiki), I would appreciate it if you send it to me to read it.
  4. I'm sorry if that's not the right place to post on, I'm an objects designer anyways I have designed many objects but I can't find some ORIGINAL objects to replace them with mine. Is there a way to create new objects without replacing code I mean objects which have new NAMES and NUMBERS in the MAP EDITOR! Btw, IF not can you name me some useless objects to replace my main objects with it.
  5. I have just edited the house object from GTA SA in 3ds max. Everything was good untill the night came.. This is how my model looks like in the night: (Its brighter than normal objects outside blue cricle) And when we have the day it looks good: DFF file was exported by KAM's script. Anyone knows how to get rid of this problem?
  6. local Z1 = createColRectangle(1577, 1723, 60, 140 ) function spawnRoadblock(id, x, y, z, rx, ry, rz, dim, int) if (not id) then return end if ( id =="" and dim == 0) then return true end if (id == 978) then z = z-1 end local accName = getAccountName(getPlayerAccount(client)) local object = createObject(tonumber(id), x, y, z, rx, ry, rz) setElementDoubleSided(object, true) setElementFrozen(object, true) setElementData(object, "creator", accName, false) roadblocks[object] = {object, getAccountName(getPlayerAccount(client))} if (tonumber(dim) ~= 0) then setElementDimension(object, dim) end if (tonumber(int) ~= 0) then setElementInterior(object, int) end if (id ~= 1225) then triggerClientEvent(client, "nobreak", client, object) end end addEvent("events.RB.AddRoadblock", true) addEventHandler("events.RB.AddRoadblock", root, spawnRoadblock) ____________________________________________________________________________________________________________________________ i want to add on it, if Client placed a Object outside Z1 it will not get placed, and if it placed inside the Z1 it will be placed, Please can someone help, and i appreciate that! thank you.
  7. I'm currently working on a new project and I'm going to need some help if I want it launched any year soon. What I'm looking for - Someone(s) who can model a variety of things Vehicles Mapping Vegetation Objects Detailing Ped models Likely etc While there is no payment if things go right this could be one of the biggest and best servers in MTA If you want any more details or are interested post here or PM me.
  8. Hi, I'm sure this question has been asked a thousand times but I just can't find an answer to my very specific question; is there a method to add objects into MTA without replacing other models? Like is there any way at all to do it? I'm currently working on a script that allows the player to have accessories attached to them, but a lot of the useless items within the game have already been used up by my other resource and I've hit a block wall. I had this idea to use CJ's wearable objects such as his hats, sunglasses and watches but for some odd reason the wiki is poorly documented and doesn't show me the ID that I need to replace. Any help at all would be really appreciated! Kind~Regards, Portside
  9. Pustelnik

    Dayz Objects

    Hello everyone, Im looking for some dayz objects for maping, I was looking for then a while but only i can find its some buildings, can someone help me with that?
  10. Приветствую всех. Уже давно не могу справится с одной проблемой. Схема такая: - Ресурс: vehicles - Ресурс: houses - Ресурс: businesses В каждом ресурсе есть своя глобальная таблица pl_vehs = {} houses = {} businesses = {} И проблема вот в чем, в ресурсе vehicles каждый игрок имеет 1-4 своих ячейки в таблице pl_vehs в таблицу pl_vehs = {} заносятся авто следующим образом: к примеру спавн: pl_vehs[carID] = createVehicle(tonumber(car_Info["model"]), x, y, z, 0, 0, rZ-90) Всё вроде хорошо, дальше задаётся элемент дата, играется прекрасно. Но вот спустя какое-то время при онлайне 100-300 чел. начинается следующая проблема: человек спавнит машину, и вместо неё телепортируется либо рандомный обьект маппинга, либо элемент (в виде пикапа) из houses[] или из bussineses[] Короче говоря функция createVehicle каким-то х... телепортирует уже существующий на сервере элемент, причем даже иногда игрока телепортирует. Как это возможно?! В дебаге и консоли никаких ошибок!(
  11. Hello Ladies Today i wanna suggest to add favorites list into Map Editor Object choose! as its hard to remember all needed objects Ids and be able to add object to that list when its needed or at least use Most used objects list to save time as many times when you find object you like for first time you dont keep its ID when you start other map! so i believe its needed for the mapping community or at least to help make mapping much easyer! Vote +1 if you like this suggestion! and cya
  12. First of all thanks for taking your time to read this. Back to the question i wanted to make a script that when someone logsIn the camera targeted an object and follow the object as the object moved instead of targeting the player then when the object stoped that the player spawned there where the object stoped. My idea with this was to make a mini intro. But i can not get the setCameraTarget to go to the object and i tried the setCameraMatrix to the object and it works but when i move the object the camera does not follow i already tried with a setTimer and a function but i cant get it to work Note : i dont have a script to post Thanks again for reading this i hope you can help me ☺