Search the Community
Showing results for tags 'weapons'.
-
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
-
Matrix Gaming is a clan server founded by particularly skilled people in content creation and development. We offer you a completely new environment to have fun in, with limitless possibilities and constant improvement. We're players that always wanted to take the gaming experience in MTA:SA to the next level, and this server is proudly a project we dedicated a lot of time on to ensure you the best gameplay you'll ever experience. Our IP: mtasa://185.225.232.138:22003 (Click to beam inside your MTA:SA client) Our website: https://mxgaming.net Our discord server: https://discord.com/invite/ncJxqsY9Wz Our Freeroam gamemode is very diverse, it differs a lot from the usual freeroam where all you do is pretty much drive all day until you get bored. We offer you custom vehicles models made by our talented 3D Modeller (-mx-Wanted), models that even lower end computers can properly run. Not only that, but with our IVF 2.0 mod, you can use realistic vehicle features in-game, just like the original GTA:SA mod. In addition to that, thanks to -mx-Bolm, we also offer you a whole lot of character skins that you can use and have your fun with. Our Freeroam also contains multiple events that run after a specific interval of time, such as Car Treasure. This event challenges you to find a hidden vehicle through a hint, you'll have exactly 10 minutes to find it to win Money and XP. Besides all of this, you can customize your game however you like through our main panel (can be accessed by pressing F7). You'll find a bunch of settings ranging from QoL to Graphics that'll completely transform how your game behaves. We also care for laid-back and competitive players, we provide custom weapon models and sounds with completely REBALANCED properties and synchronized damage. Although, if you're not a big fan of Deathmatch, you can just toggle your PASSIVE MODE through our panel. You have the ability to customize your environment, your gameplay, edit your handlings, fly, hover and jump using your vehicles too! * Shooter: The classic Shooter experience, where you're given an Infernus and a jumping ability to eliminate all your enemies and be the last one standing to win. You can switch your vehicle, obtain nitro or a vehicle repair through the custom pickups in the game mode's maps. * DD: A fun Destruction Derby experience, where you push the players off the map towards the water or ram them until their vehicle explodes. The last one standing wins. Maps include nitro, repair and vehicle change pickups as well. * Domination: A game mode inspired from the Call of Duty game series, where two teams 'Alpha' and 'Bravo' compete against each other to capture the 3 flags: A, B and C. For each flag a team captures, they gain 1 point every 5 seconds. The team that reaches 200 points first, or has the most points by the end of the 10 minute match wins. * Team Deathmatch: In this game mode, two teams 'Grove' and 'Vagos' fight each other with enabled respawn inside the event. Each kill equals 1 point, headshots grant double points. The match's duration is 10 minutes. The team that has most points by the end of the match wins. * Heist: Our server offers a heist game mode that allows clans in-game to compete between each other to crack a vault's code to rob the goods inside and obtain a briefcase. The briefcase must be delivered to the delivery drop-off location using the special Heist bulletproof and damage tolerant Van. Our clan is very fond of dogfighting. Because of that, we decided to take the Dogfight experience to the next level by implementing new things. Our aircraft rockets are improved and are patterned through custom AI that allows a very engaging aircraft combat experience with high speeds and required accuracy. Where and how you aim actually matters. We were heavily inspired by how GTA V's aircraft work. Besides Hydra, we have also improved Hunter and Rustler by granting them additional features. For hunters: You can use advanced missiles to take down your enemy, in addition to the usual explosive cannon. For rustlers: the aircraft is now faster and generates less drag. And its explosive cannons are way more powerful now. All our combat aircraft are given a targeting vizor to help track enemies down. EXTRA FEATURES: * Clans: Allows you and your friends or other players to be part of one team. Customize your clan with any kind of tag, color and name you want. We have a special clan panel that allows you to view your clan logs, invite new players to your clan, be invited to a clan and list all the clan invitations you are the source or target of. Each clan has 3 ranks: Member, Leader, and Owner. Only one person can own a clan. * A custom rank/level system: Currently, the max Level is set to 35. You level up by gaining XP points through killing other players or winning events. * Responsive, modern and fluid GUI, for an amazing user experience. * A full-on game customization panel with plenty of settings and graphical modifications. * Responsive damage system: Weapons are rebalanced, and damage is properly synchronized. Damage is bodypart responsive, which means hitting a player on the leg would deal less damage to the target than hitting them on the torso or the head. * Car Treasure: Every 30 minutes, a car spawns in the Freeroam. Players have 10 minutes to find the car to win a good amount of XP and money. * Lotto: Your usual lotto feature, starts every 30 minutes and generates a random number. If the player purchases the ticket with the lucky number, they win a good sum of money. MORE TO COME SOON! THE SERVER IS HEAVILY OPTIMIZED SO THAT EVEN THE LOWEST END COMPUTERS USERS CAN ENJOY A MESMERIZING EXPERIENCE. We look forward to seeing you. -mx- Administration.
-
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)
-
I would like to ask if there is a way to make a second weapon, for example to have two M4s, but to shoot differently, e.g. to have a different one with a rate of fire and the other one to deal more hp. Is there a way to do something like this?
-
Aonde eu aumento o alcance das armas do meu servidor e aonde fica esse arquivo de editar ?
-
Hi! I'm a kind of noob scripter making a VIP panel, but I do not find a way to set.. for example, I want the player to spawn op weapons (only for vip users in this case), like Rocket Launcher, only a few times at day, not more than the established number of times for spawning it. Is it possible to do that? Also spawn Rhino's and some vehicles that I made only for VIP's.
-
So i have a shop script wich pretty much allows to buy items/weapons from this shop, the shop sells with "K.B.K Points" which is the player money but with another name to fit the server. The problem i have is when player buys one of the item they get all of them. I want to make them get the item they buy ONLY and get the right amount, for example if you buy a MK 48 Mod 0 Mag, you should get 100x of this item in your inventory because the mag itself is 100, otherwise wich ive tested it only gave 1x. But the problem is when i add more lines which i have shown below, it gives the player all the items listed below, i was trying to use if, and else if, but because i lack experience in lua coding i was not able to debug this even with debugscript! I would appreciate if someone could work out or help me out on how to make the shop only give the player the item the player buys and the right amount! The "+1" in the lists are the amount the player should get! If you need more of the code to understand and help me out then i will add it on request local items = { --items,cena(K.B.K Points) {"M1911",50}, {"PDW",150}, {"Winchester 1866",150}, {"AK-107",300}, {"M4A1 Holo",300}, {"MK 48 Mod 0",450}, {"CZ550",300}, {"DMR",400}, {"M1911 Mag",50}, {"PDW Mag",100}, {"1866 Slug",125}, {"AK-107 Mag",100}, {"M4A1 Holo Mag",50}, {"MK 48 Mod 0 Mag",200}, {"CZ550 Mag",50}, {"DMR Mag",25}, {"Medic Kit",50}, {"Painkiller",10}, {"Morphine",10}, {"Bandage",5}, {"Water Bottle",15}, {"Burger",15}, {"Tire",75}, {"Engine",125}, {"Tank Parts",50}, {"Camouflage Clothing",100}, {"Army Clothing",150}, {"Ghost Clothing",200}, {"K.B.K Backpack",150}, {"Ghillie Suit",200}, {"Civilian Clothing",30}, {"GPS",15}, {"Map",15}, {"Toolbox",25}, } SHOP = { button = {}, window = {}, gridlist = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() SHOP.window[1] = guiCreateWindow(0.17, 0.23, 0.65, 0.55, "Kill Or Be Killed Shop", true) guiWindowSetMovable(SHOP.window[1], false) guiWindowSetSizable(SHOP.window[1], false) guiSetProperty(SHOP.window[1], "CaptionColour", "FF075205") SHOP.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.97, 0.63, true, SHOP.window[1]) column = guiGridListAddColumn(SHOP.gridlist[1], "Item", 0.5) column2 =guiGridListAddColumn(SHOP.gridlist[1], "K.B.K Points", 0.5) for _, v in ipairs(items) do local row = guiGridListAddRow ( SHOP.gridlist[1] ) guiGridListSetItemText ( SHOP.gridlist[1], row, column, v[1], false, false ) guiGridListSetItemText ( SHOP.gridlist[1], row, column2, v[2].."", false, false ) end guiSetProperty(SHOP.gridlist[1], "SortSettingEnabled", "False") SHOP.label[1] = guiCreateLabel(0.02, 0.69, 0.97, 0.08, "Select item which you want to buy! \nThe shop value is K.B.K Points", true, SHOP.window[1]) guiLabelSetColor( SHOP.label[1],255,255,255) guiSetFont(SHOP.label[1], "default-bold-small") guiLabelSetHorizontalAlign(SHOP.label[1], "center", true) guiLabelSetVerticalAlign(SHOP.label[1], "center") SHOP.button[1] = guiCreateButton(0.35, 0.79, 0.30, 0.12, "BUY", true, SHOP.window[1]) guiSetFont(SHOP.button[1], "default-bold-small") guiSetVisible ( SHOP.window[1], false ) addEventHandler ( "onClientGUIClick", SHOP.gridlist[1], click ) addEventHandler ( "onClientGUIClick", SHOP.button[1], buttonClick ) end ) bindKey ( "f4", "down", function ( ) if getElementData(localPlayer, "logedin") then -- if getElementData (getLocalPlayer(),"playerlevel") >= 3 then local state = ( not guiGetVisible (SHOP.window[1]) ) guiSetVisible ( SHOP.window[1], state ) showCursor ( state ) -- else -- outputChatBox (" 3!") -- end end end ) function buttonClick(button) if getElementData(localPlayer, "logedin") then if button == "left" then local nRow, nColumn = guiGridListGetSelectedItem( SHOP.gridlist[1] ) if nRow ~= -1 and nColumn ~= - 1 then local selectedItem = guiGridListGetItemText ( SHOP.gridlist[1], guiGridListGetSelectedItem ( SHOP.gridlist[1] ), 1 ) local price = guiGridListGetItemText ( SHOP.gridlist[1], guiGridListGetSelectedItem ( SHOP.gridlist[1] ), 2 ) local money = getPlayerMoney(thePlayer) if (money) >= tonumber(price) then guiLabelSetColor( SHOP.label[1],255,255,255) -- guiSetText( SHOP.label[1],"pietiek nauda") setPlayerMoney(money -tonumber(price)) setElementData(getLocalPlayer(),"PDW",getElementData(getLocalPlayer(),"PDW")+1) setElementData(getLocalPlayer(),"Winchester 1866",getElementData(getLocalPlayer(),"Winchester 1866")+1) setElementData(getLocalPlayer(),"M1911",getElementData(getLocalPlayer(),"M1911")+1) setElementData(getLocalPlayer(),"AK-107",getElementData(getLocalPlayer(),"AK-107")+1) setElementData(getLocalPlayer(),"M4A1 Holo",getElementData(getLocalPlayer(),"M4A1 Holo")+1) setElementData(getLocalPlayer(),"DMR",getElementData(getLocalPlayer(),"DMR")+1) setElementData(getLocalPlayer(),"CZ550",getElementData(getLocalPlayer(),"CZ550")+1) setElementData(getLocalPlayer(),"MK 48 Mod 0",getElementData(getLocalPlayer(),"MK 48 Mod 0")+1) setElementData(getLocalPlayer(),"M4A1 Holo Mag",getElementData(getLocalPlayer(),"M4A1 Holo Mag")+20) setElementData(getLocalPlayer(),"DMR Mag",getElementData(getLocalPlayer(),"DMR Mag")+5) setElementData(getLocalPlayer(),"CZ550 Mag",getElementData(getLocalPlayer(),"CZ550 Mag")+10) setElementData(getLocalPlayer(),"M1911 Mag",getElementData(getLocalPlayer(),"M1911 Mag")+100) setElementData(getLocalPlayer(),"PDW Mag",getElementData(getLocalPlayer(),"PDW Mag")+10) setElementData(getLocalPlayer(),"1866 Slug",getElementData(getLocalPlayer(),"1866 Slug")+7) setElementData(getLocalPlayer(),"MK 48 Mod 0 Mag",getElementData(getLocalPlayer(),"MK 48 Mod 0 Mag")+100) setElementData(getLocalPlayer(),"Medic Kit",getElementData(getLocalPlayer(),"Medic Kit")+1) setElementData(getLocalPlayer(),"Painkiller",getElementData(getLocalPlayer(),"Painkiller")+1) setElementData(getLocalPlayer(),"Morphine",getElementData(getLocalPlayer(),"Morphine")+1) setElementData(getLocalPlayer(),"Bandage",getElementData(getLocalPlayer(),"Bandage")+1) setElementData(getLocalPlayer(),"Water Bottle",getElementData(getLocalPlayer(),"Water Bottle")+1) setElementData(getLocalPlayer(),"Burger",getElementData(getLocalPlayer(),"Burger")+1) setElementData(getLocalPlayer(),"Tire",getElementData(getLocalPlayer(),"Tire")+1) setElementData(getLocalPlayer(),"Engine",getElementData(getLocalPlayer(),"Engine")+1) setElementData(getLocalPlayer(),"Tank Parts",getElementData(getLocalPlayer(),"Tank Parts")+1) setElementData(getLocalPlayer(),"Camouflage Clothing",getElementData(getLocalPlayer(),"Camouflage Clothing")+1) setElementData(getLocalPlayer(),"Army Clothing",getElementData(getLocalPlayer(),"Army Clothing")+1) setElementData(getLocalPlayer(),"Ghost Clothing",getElementData(getLocalPlayer(),"Ghost Clothing")+1) setElementData(getLocalPlayer(),"K.B.K Backpack",getElementData(getLocalPlayer(),"K.B.K Backpack")+1) setElementData(getLocalPlayer(),"Ghillie Suit",getElementData(getLocalPlayer(),"Ghillie Suit")+1) setElementData(getLocalPlayer(),"Civilian Clothing",getElementData(getLocalPlayer(),"Civilian Clothing")+1) setElementData(getLocalPlayer(),"GPS",getElementData(getLocalPlayer(),"GPS")+1) setElementData(getLocalPlayer(),"Map",getElementData(getLocalPlayer(),"Map")+1) setElementData(getLocalPlayer(),"Toolbox",getElementData(getLocalPlayer(),"Toolbox")+1) end guiLabelSetColor( SHOP.label[1],10,255,10) guiSetText( SHOP.label[1],"You succesfully bought "..selectedItem.." and you still have "..(money -tonumber(price)).." K.B.K Points") else guiLabelSetColor( SHOP.label[1],255,10,10) guiSetText( SHOP.label[1],"You are missing "..(price -tonumber(money)).." K.B.K Points") end else guiSetText( SHOP.label[1],"Select something first") guiLabelSetColor( SHOP.label[1],255,255,255) end end end function click () local selectedItem = guiGridListGetItemText ( SHOP.gridlist[1], guiGridListGetSelectedItem ( SHOP.gridlist[1] ), 1 ) local price = guiGridListGetItemText ( SHOP.gridlist[1], guiGridListGetSelectedItem ( SHOP.gridlist[1] ), 2 ) guiSetText( SHOP.label[1],"To buy "..selectedItem.." for "..price.." K.B.K Points press button below") guiLabelSetColor( SHOP.label[1],255,255,255) end
-
Hello guys I need help to create a script for a kit of weapons you know how to do? I would like with a command gives me the kit of weapons for example I do / kit and gives me weapons if you know you tell me please!
-
-- This piece of code in located in the 'onPlayerQuit' event handler. It saves the player's weapons and ammo if he has any, this is all working correctly local weapons = {} for slot = 1, 12 do local weapon = getPedWeapon(source, slot) if weapon > 0 then local ammo = getPedTotalAmmo(source, slot) if ammo > 0 then table.insert(weapons, {weapon, ammo}) end end end -- This is what appears under the 'weapons' column in the player's account table entry [ [ [ 30, 176 ] ] ] -- Which means the player left the server and had an AK-47 with total 176 ammo left -- And this is the part which loads the SQL weapons data for weapon, ammo in ipairs(fromJSON(accountData.weapons)) do giveWeapon(player, tonumber(weapon), tonumber(ammo)) end -- The problem is, the player doesn't get the weapons he has saved, instead, he'll be given a brassknuckle everytime and the SQL entry is reset Any ideas why it is not working properly? I'm using SQLite not MySQL. The weapons are saved correctly, so it would seem that the problems stems in the loading part.
-
Hi am looking for a script that is a custom damage modifier instead of the original gta sa weapons i want to change the range of guns damage and also accuracy and max clip a gun can hold is that possible?
-
Hello! I need to use attachElements with an object in a player's gun, but from what I noticed the player's weapon is not recognized as "element". Code: function customM4(source) if getPedWeapon(source) == 31 then local gunModel = createObject(1487, 1, 2, 3) attachElements(gunModel, getPedWeapon(source)) end end addCommandHandler("m4skin", customM4)
-
Hi, guys, i'm a belarusian, so i'm sorry for my bad english. My suggestion is that you should add a possibility to change animations of guns, so i could shoot and hold colt45 or another guns like a normal guy, not a gangsta :O :~ guy. This issue is already exist since 2014 https://bugs.mtasa.com/view.php?id=8396 I like roleplay servers so i wish u will add this function soon. Thanks.
- 2 replies
-
- weapons
- animations
-
(and 1 more)
Tagged with:
-
Hello all MTA community recently I checked in my server that I need to do some settings like rhino I wanna make rhino for timer purpose like all can buy rhino but for minimum time -10 min 0r 5min till he die !how can I ? From fr-cilent .Lua or should I need add any other way ? Next is : I want to give more effect of ammos for ak47,m4 more ammo ,for snatchels and grenades I mean when I throw 1 grenade the other player must die even if he is with armour+health ,in recently MTA by thrwoing 4 grenades or snatchels only able to make player die ! anyone suggest me how to ? Please let me know Another one is for freeroam servers many use binds to regain more kills ,when they snatchel they recently use it has blast too I want to add this to as timer (wait 10 sec to use another key ) Let me know pls
-
Working on a First Person Shooter gamemode, and i found a bug. The event onClientPreRender causes some delay at attachElements. Can somebody reproduce attachElements maths for me?
- 1 reply
-
- 1
-
- help
- attachelements
- (and 12 more)
-
Does anyone have a script that does this, or do you know how to make these new weapons? If yes please teach me !!
-
Salut ... m-am gandit ca ar fi o idee buna sa adaugati un mod de crafting de arme... si m-am gandit si cum sa functioneze : Arma: -Un om este plasat pe harta (un om care vinde materialele .. sa zicem ca il cheama Jonny McGregor) -Cumperi materialele ... (sa fie o comanda sa vezi cate materiale ai ... /wepmaterials , /materialsview .. ) -Dupe ce cumperi materialele.. craftezi arma.. -Sa fie o comanda pentru a crafta arma (/buildweapon [id] ex. colt [5] , ak47 [7] etc etc ... ) -Dupa care ai acceasi animatie ca la HACKER ! Dupa ce o crafteaza o vei putea avea in inventar si saa te joci cu ea .. Un mic exemplu : Te duci Jonny McGregor apesi m si dai click dreapta pe el ... Alegi materiale pentru ce arma doresti ... ex . colt , sniper , ak , akm , etc Dupa ce ai cumparat materialele .. dai /buildweapon 5 - care ne v-a crafta un Colt.45 Si gata .. dupa ce ai asteptat sa se crafteze arma ... o vei putea vedea in inventar ... Ok dar... am arma... dar munitie ?! Munitie: -Un dealer plasat pe harta care vinde cartuse pentru diferite arme .. (pentru colt unul sa fie in LS ... pentru AK unul sa fie in SF etc etc) -Faza e simpla ... cumperi cartuselesi gata... Asa ar fi o ideie mai buna decat sa te chinui cu Gang-urile si Mafile ca sa poti obtine o arma SPER CA IDEEA MEA A FOST DE FOLOS !
-
Hello there, I've been trying to create a weapon (uzi) and attach it on a vehicle (hydra) the weapon should fire when I click the left mouse button. I am stuck at the very beginning of the script (trying to get the uzi to spawn) and I just cannot progress any further. function hydraGuns() local vehicle = getPedOccupiedVehicle(localPlayer) if(vehicle)then if getElementModel(vehicle) == 520 then local x, y, z = getElementPosition(vehicle) local weapon = createWeapon("uzi", x, y, z) outputChatBox ("Hydra guns are installed") end end end What am I doing wrong?
-
function buyWeapon(thePlayer, command) local mycoins = exports.coinsystem:getPlayerCoin(thePlayer) if (mycoins >= 1) then giveWeapon(thePlayer, 31, 2000) exports.coinsystem:takePlayerCoin(thePlayer, prize) outputChatBox("you bought a M4.", thePlayer, 0, 255, 0, false) else outputChatBox("you don't have enough coins!", thePlayer, 255, 0, 0, false) end end addCommandHandler("buyw", buyWeapon) i got this error: xy.lua:17: attempt to compare number with nil
-
Attention I have created this topic to tell you everyone that I am going to freelance in MTA:SA. As you don't know I am working with MTA:SA since 2013 and I have a lot of experience. If you are interested in any of MTA:SA (like DayZ) resouces, scripts or other things, just tell me what you want and I will sell it to you. Also I can teach you how to make some kind of scripts/resources/models/etc. by yourself, how to add it to the server. I can be your server scripter/mapper/hacker/etc., just hire me. Don't be shy You can contact me via e-mail ([email protected]) or skype (herokileris), or here in the forum (this topic or pm). For example, some of the scripts I have made and I can sell you: Vip - (in DayZ) gets more blood, restorations when eating, using medics, drinking... Also gets more stats after each spawning in the map. Animals in the map spawning and has an inventory in which they drop randomly Raw Meat after death. Respawn timer works perfectly. Zombies changed their status from walking or running, how they walk like randomly in the game, they scream, moan, bite your neck, infect you. Also I have a lot of DAYZ zombie models and sounds. Weapons system - each weapon has own model and shooting sound, inventory space slots, the name, the spawning chances, damage, ammo use, crosshire (including and snipers). Hold your breath system - when you aim, your crosshire moves, you can hold your breath and stop moving crosshire by holding a key like for example: for a 5 seconds. There are sounds added also for it. Sounds for you and others when you use medics, food, drinks, etc. like in the real life depending on the distance. Armour, hats, helmets, masks, caps and other clothing systems. MORE AND MORE. Group system. Scoreboard system. Give/Set items system. Map bugs fixer. Radiators, engines, tires, rotors, scrap metals, tank parts, etc. system for vehicles. AND MORE. I have all .lua files.
-
Hello, I have been looking for a way to check if melee damage was dealt with a weapon, because I want to add a gears of war animation when hit with a weapon, I was looking at the MTA Damage Types, found this: Does anyone have an Idea what can I use to accomplish this? thanks!
-
Hello any1 knows how to add more guns on server? I have dayz server and i would like to get some help. Just tell me here or contact me if you know how to script.
-
Guns Do not Work Error In MTA I play with my friends with heavy weapons and all that and reads * WARNING * Player * have * a * weapon * WARNING * Dominic1064 example has a Rocket Launcher help me plz tell me to play more good