Search the Community
Showing results for tags 'objects'.
-
Hi everyone, I've encountered a limitation when trying to use model IDs above 32000 in MTA:SA. It seems that I cannot directly assign IDs over 32000 for models, and I also can't freely assign any ID number. I'm wondering if this is a limitation imposed by MTA:SA itself or if it's a restriction from GTA San Andreas. Additionally, is there any mod or workaround available that can remove this limitation and allow me to directly assign any model ID without restrictions? I would appreciate any insights or solutions to this issue. Thank you in advance! - amp Edit: https://github.com/multitheftauto/mtasa-blue/blob/master/Client/mods/deathmatch/logic/CModelNames.h line 15: #define INVALID_MODEL_ID 32000
-
mta-add-models is a library/framework resource that I made: Its purpose is allowing you to add new peds(skins)/objects/vehicles to your server. All the new added models will be automatically synced with all players. Supports encrypted mod files using the NandoCrypt system. As of v2.0.0, files with attribute download="false" in meta.xml are supported, and newmodels will handle downloading them! The way to achieve this is by following the tutorial included in the project's documentation (see GitHub link below) The resource comes with test commands for you to experiment with the mods provided and see what's going on under the hood. You're meant to make your own implementations to use newmodels in your server's complex systems. GitHub Repo (Download): https://github.com/Fernando-A-Rocha/mta-add-models#readme (Documentation here) (NEW) Custom Map Editor Community Page (Alternative Download): https://community.multitheftauto.com/index.php?p=resources&s=details&id=18598 For support/questions please access my main thread: https://forum.multitheftauto.com/topic/139644-rel-nandos-resources/ I hope you enjoy!
- 76 replies
-
- 14
-
As the title says, I'm interested in a finished Custom Weapon System (CWS in short). There are a few criteria that must be met with the CWS, which I will go in detail privately. So if you're interested in selling one, feel free to DM me. Best regards, Vseven
-
- custom weapon sytem
- cws
- (and 6 more)
-
Hello, is there any plugin or anything to add SAMP 0.3.7 objects to MTA SA Map Editor? SAMP Constructor is a bit complex and hard for me, so I use MTA Map Editor because it's so easy. I don't want it to replace any objects, just add SAMP objects in MTA Map editor, any solutions? Thank you.
-
In total, I have two questions, but on the same topic: - Is it possible to add an object instead of replacing it with another? - If not, what objects are not used by GTA / MTA San Andreas?
-
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. Você precisa restaurar o objeto quando o script for desligado, para isso use RestoreWorldModel. 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", resourceRoot, removeBagulho) function restauraBagulho() restoreWorldModel(5681, 15, 1911.3, -1776.25, 13.38) -- Restaura o objeto quando o resource é desativado. end addEventHandler("onResourceStop", resourceRoot, 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. Obs: Nem todos os objetos podem ser removidos com essa função, por exemplo aquelas plantas do deserto que se você bater com veículo elas podem quebrar. Isso ocorre pois elas são geradas no mapa, não possuem posição fixa. Outras plantas geradas também não podem ser removidas, mesmo se forem selecionáveis. Tanto que se você tentar procurar o ID dessas árvores seguindo os passos acima, vai perceber que o site não encontra essas árvores na pesquisa do mapa. Para remover essas plantas, utilize isso: setWorldSpecialPropertyEnabled("randomfoliage", false)
-
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.
-
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.
- 2 replies
-
- map editor
- objects
-
(and 1 more)
Tagged with:
-
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?
-
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.
-
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.
-
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
- 7 replies
-
- object limiter
- adding
-
(and 3 more)
Tagged with:
-
Приветствую всех. Уже давно не могу справится с одной проблемой. Схема такая: - Ресурс: 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 каким-то х... телепортирует уже существующий на сервере элемент, причем даже иногда игрока телепортирует. Как это возможно?! В дебаге и консоли никаких ошибок!(
-
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
- 6 replies
-
- 4
-
- map editor
- favourits
- (and 4 more)
-
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 ☺