All Activity

This stream auto-updates     

  1. Past hour
  2. kiriljun

    MTA OPEN ERROR

    my mta is 1.5.7 the latest one, but when i open it its say error cannot be find the loader.dll
  3. Today
  4. SebySs241

    Error

    Hey, can i ask you what to do? My friend have little problem with connecting to other servers. If he trying to join on some server, he gets an error. He can´t download any server models and scripts. There are the screens: https://imgur.com/a/dCGKlVN. Thank you for your answer.
  5. The_GTA

    [HELP] IKICK

    Line 10: * replace playerID with targetPlayer * replace PlayerSource with playerSource
  6. انا عندي انميشن انا مسويه ابي اسوي له replace بدل انميشن ثاني Client-> function ReAni() local customBlockName = "myNewBlock" local IFP = engineLoadIFP ( "walk.ifp", customBlockName ) if not IFP then outputChatBox( "Failed to load 'walk.ifp'" ) engineReplaceAnimation( localPlayer, "ped", "WOMAN_walksexy", customBlockName, "walk_rest") end end addEvent("ReAni", true) addEventHandler("ReAni", getRootElement(), ReAni ) server-> function ReAni(thePlayer) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then triggerClientEvent (thePlayer, "ReAni", getRootElement()) else exports.global:applyAnimation( thePlayer, "ped", "WOMAN_walksexy", 2300, false, false, false) end end addCommandHandler ("rest", ReAni, false, false ) لاكن بال debugscript يطلع error loadengineIFP http://prntscr.com/r8tvj7
  7. I've been messing around with 'setWeaponProperty' in order to understand how it works. I changed how the deagle is handled. Decided to undo the changes and, upon resetting everything, the weapon bugged. Image Any script with 'setWeaponProperty' has been removed, and the resource has been stopped and removed from metaserver.conf. Fixed after several restarts and total wipe of downloaded resources.
  8. Всем привет. Случилась следующая проблема, когда я очистил гта и поместил туда свои объекты, то в мта я их не вижу. Проблема в том что, когда я не очищаю карту я спокойно добавлю свои объекты с заменой старых, а когда я делаю очистку то, как бы я их добавлю в мта но почему-то их не видно, например он загружаются, но при этом на все объекты у меня одни мусорный бак
  9. Look the video. on the other characters it works perfectly
  10. Entendi.. poste aqui novamente o você já tentou.
  11. sim, a quetão não é ver códigos prontos, mas sim saber onde está o erro, eu não consigo saber onde está, eu tento varias modificações, e tenho algumas outras gms aqui onde tento procurar também alguma função parecida, pego alguns codigos, mas não da em nada. --## Copyright (c) 2015 Grosu `PoWeR` Mihaita. --## MTA:DayZ Backup System v1.5. local dbType = "SQLite"; --Here set your db type, "MySQL" or "SQLite" <!> local dbName = ""; --Your database name <!> local dbHost = ""; --Your hostname/IP <!> local dbUser = ""; --Username for database <!> local dbPass = ""; --Password for database <!> local dbPort = 1234; --This is an port exemple CHANGE IT <!> local last_veh_id = 0; --Don't edit here <!> local last_tent_id = 0; --Don't edit here <!> local itemsDataTable = { -- If your server have different items be sure you imported your item table here! {"M4A1"}, {"M4A1 CCO"}, {"M4A1 CCO SD"}, {"Sa-58P"}, {"Sa-58P CCO"}, {"M4A3 CCO"}, {"M16A4 ACOG"}, {"G36C (Camo)"}, {"M16A2"}, {"FN FAL"}, {"AKS-74U"}, {"AKS (Gold)"}, {"MG36"}, {"Bizon PP-19 SD"}, {"AK-107"}, {"AK-107 GL"}, {"AK-74"}, {"G36C"}, {"Gorro Noel"}, {"G36C SD"}, {"AKS-74 Kobra"}, {"AKM"}, {"RPK"}, {"CZ 550"}, {"SVD CAMO"}, {"M40A3"}, {"DMR"}, {"M24"}, {"M107"}, {"AS50"}, {"KSVK"}, {"Cheytac M200"}, {"M249 SAW"}, {"Mk 48 Mod 0"}, {"M240"}, {"PKM"}, {"PKP"}, {"Double-Barreled Shotgun"}, {"M1014"}, {"Remington 870"}, {"Winchester 1866"}, {"Sawn-Off Shotgun"}, {"PDW"}, {"MP5A5"}, {"MP5SD6"}, {"Machete"}, {"Hatchet"}, {"Crowbar"}, {"Shovel"}, {"Makarov PM"}, {"Makarov SD"}, {"G17"}, {"M1911"}, {"M9"}, {"M9 SD"}, {"Revolver"}, {"Balanced Vest"}, {"Press Vest"}, {"Police Vest"}, {"Light Tactical Vest"}, {"Balistic Vest"}, {"UK Assalt Vest DPM Camo"}, {"UK Assalt Vest DPM Black"}, {"Balistic Plus Vest"}, {"Helmet"}, {"Mossy Helmet"}, {"UN Helmet"}, {"Gorro Noel"}, {"Aviator Helmet"}, {"Gas Mask 1"}, {"Gas Mask 2"}, {"Motorbike Helmet 1"}, {"Motorbike Helmet 2"}, {"Motorbike Helmet 3"}, {"Motorbike Helmet 4"}, {"Skate Helmet"}, {"Tanker Helmet"}, {"Welding Helmet 1"}, {"Welding Helmet 2"}, {"Smersh Backpack"}, {"Courier Bag"}, {"Child Briefcase"}, {"Improvised Backpack"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"British Assault Pack"}, {"Taloon Backpack"}, {"Omega Backpack"}, {"Alfa Backpack"}, {"Hunting Backpack"}, {"Camping Backpack"}, {"Drybag Backpack"}, {"Mountain Backpack"}, {"Czech Backpack"}, {"Camping Tactical Backpack"}, {"Coyote Backpack"}, {"Coyote Backpack (Desert)"}, {"Coyote Backpack (Mossy)"}, {"Tactical Backpack"}, {"Eskimo Backpack"}, {"Tiger Backpack"}, {"Noel Backpack"}, {"Canned Spaghetti (Fechado)"}, {"Canned Spaghetti (Aberto)"}, {"Canned Baked Beans (Fechado)"}, {"Canned Baked Beans (Aberto)"}, {"Canned Sardines (Fechado)"}, {"Canned Sardines (Aberto)"}, {"Can of Tactical Bacon (Fechado)"}, {"Can of Tactical Bacon (Aberto)"}, {"Water Bottle"}, {"Burger"}, {"Pizza"}, {"Soda Bottle"}, {"Milk"}, {"Cooked Meat"}, {"Raw Meat"}, {"Antibiotics"}, {"Bandage"}, {"Medic Kit"}, {"Heat Pack"}, {"Painkiller"}, {"Blood Bag"}, {"Morphine"}, {"Engine"}, {"Tire"}, {"Tank Parts"}, {"Scrap Metal"}, {"Steel Sheet"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Stinger"}, {"Wood Pile"}, {"Roadflare"}, {"Wire Fence"}, {"Tent"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Night Vision Goggles"}, {"Infrared Goggles"}, {"Map"}, {"Box of Matches"}, {"Watch"}, {"GPS"}, {"Toolbox"}, {"Radio Device"}, {"Syringe"}, {"Opener"}, {"Hose"}, {"Tire Repair Kit"}, {"Compass"}, ------- {"30Rnd. STANAG"}, {"FN FAL Mag."}, {"G36 Mag"}, {"30Rnd. AK"}, {"CZ 550 Mag."}, {"SVD Mag."}, {"M24 Mag."}, {"DMR Mag."}, {"10Rnd. M107"}, {"5Rnd. KSVK"}, {"5Rnd. Cheytac M200"}, {"100Rnd. M249 SAW"}, {"100Rnd. M240."}, {"PKM Mag."}, {"2Rnd. Slug"}, {"Bizon Mag"}, {"MG36 Mag."}, {"M1014 Slug"}, {"1866 Slug"}, {"PDW Mag"}, {"AKM Mag."}, {"5Rnd 12.7x99mm NATO"}, {"Sa-58 Mag."}, {"MP5 Mag"}, {"Grenade"}, {"Tear Gas"}, {"Binoculars"}, {"Parachute"}, {"Makarov Mag"}, {"G17 Mag"}, {"M1911 Mag"}, {"M9 Mag"}, {".45 ACP"} }; function noteAdmins(theAlert) for _,v in ipairs(getElementsByType("player")) do if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(v)), aclGetGroup("Admin"))) then outputChatBox("#FF0000[Backup]: #FFFFFF"..tostring(theAlert), v, 255, 255, 255, true); end end end if (dbType == "MySQL") then db = dbConnect("mysql", "dbname="..dbName..";host="..dbHost..";port="..dbPort, dbUser, dbPass, "share=1"); dbExec(db, "CREATE TABLE IF NOT EXISTS vehicles(model, x, y, z, rX, rY, rZ, slots, fuel, receiver, armorPoints, armorPointsMax, engines, moving, parts, items, id)"); dbExec(db, "CREATE TABLE IF NOT EXISTS tents(model, x, y, z, rX, rY, rZ, slots, scale, items, id)"); noteAdmins("Database connected to MySQL!"); elseif (dbType == "SQLite") then db = dbConnect("sqlite", "database.db"); dbExec(db, "CREATE TABLE IF NOT EXISTS vehicles(model, x, y, z, rX, rY, rZ, slots, fuel, receiver, armorPoints, armorPointsMax, engines, moving, parts, items, id)"); dbExec(db, "CREATE TABLE IF NOT EXISTS tents(model, x, y, z, rX, rY, rZ, slots, scale, items, id)"); noteAdmins("Database connected to SQLite!"); else noteAdmins("Error: `dbType` wrong attribute!"); return false; end function backup_vehs() dbExec(db, "DELETE FROM vehicles"); local vehicleCounter = 0; for _,veh in ipairs(getElementsByType("vehicle")) do if (not getElementData(veh, "helicrash") and not getElementData(veh, "deadVehicle")) then local col = getElementData(veh, "parent"); if (col and getElementType(col) == "colshape") then local model = getElementModel(veh); local x, y, z = getElementPosition(veh); local rX, rY, rZ = getElementRotation(veh); local slots = getElementData(col, "MAX_Slots") or 20; local fuel = getElementData(col, "fuel") or 0; local spawnx = setElementData(col,"spawn_x",getElementData(col,"spawn")[2]); -- Linha para pegar o spawn local spawny = setElementData(col,"spawn_y",getElementData(col,"spawn")[3]); -- Linha para pegar o spawn local spawnz = setElementData(col,"spawn_z",getElementData(col,"spawn")[4]); -- Linha para pegar o spawn local moving = getElementData(col, "Tire_inVehicle") or 0; local engines = getElementData(col, "Engine_inVehicle") or 0; local parts = getElementData(col, "Parts_inVehicle") or 0; local siren = getElementData(col, "Sirene_inVehicle") or 0; local receiver = getElementData(col, "receiver") or 0; local armorPointsMax = getElementData(col, "armorPointsMax") or 0; local armorPoints = getElementData(col, "armorPoints") or 0; local items = {}; vehicleCounter = vehicleCounter + 1; for _,v in ipairs(itemsDataTable) do local quantity = getElementData(col, v[1]) or 0; if (quantity > 0) then table.insert(items, {v[1], quantity}); end end dbExec(db, "INSERT INTO vehicles(model, x, y, z, rX, rY, rZ, slots, fuel, engines, receiver, armorPoints, armorPointsMax, moving, parts, items, id) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", model, x, y, z, rX, rY, rZ, slots, fuel, engines, receiver, armorPoints, armorPointsMax, moving, parts, toJSON(items), vehicleCounter) end end end noteAdmins("Veículos Salvos ["..vehicleCounter.."]"); end addEventHandler("onResourceStop",getResourceRootElement(),backup_vehs) setTimer(backup_vehs,3600000,0) function backup_tents() dbExec(db, "DELETE FROM tents"); local tentsCounter = 0; for _,col in ipairs(getElementsByType("colshape")) do if (getElementData(col, "tent")) then local tent = getElementData(col, "parent"); local x, y, z = getElementPosition(tent); local rX, rY, rZ = getElementRotation(tent); local model = getElementModel(tent); local slots = getElementData(col, "MAX_Slots") or 300; local scale = getObjectScale(tent); local items = {}; tentsCounter = tentsCounter + 1; for _,v in ipairs(itemsDataTable) do local quantity = getElementData(col, v[1]) or 0; if (quantity > 0) then table.insert(items, {v[1], quantity}); end end dbExec(db, "INSERT INTO tents(model, x, y, z, rX, rY, rZ, slots, scale, items, id) VALUES(?,?,?,?,?,?,?,?,?,?,?)", model, x, y, z, rX, rY, rZ, slots, scale, toJSON(items), tentsCounter) end end noteAdmins("Tendas Salvas ["..tentsCounter.."]"); end addEventHandler("onResourceStop",getResourceRootElement(),backup_tents) setTimer(backup_tents,3600000,0) function create_veh(model, x, y, z, rX, rY, rZ, slots, fuel, receiver, armorPoints, armorPointsMax, engines, moving, parts, items, id) local veh = createVehicle(model, x, y, z+1); local vehCol = createColSphere(x, y, z, 4); setElementRotation(veh, rX, rY, rZ); attachElements(vehCol, veh, 0, 0, 0); setElementData(vehCol, "parent", veh); setElementData(veh, "parent", vehCol); setElementData(vehCol, "vehicle", true); setElementData(vehCol, "MAX_Slots", tonumber(slots)); setElementData(vehCol, "Tire_inVehicle", tonumber(moving)); setElementData(vehCol, "Engine_inVehicle", tonumber(engines)); setElementData(vehCol, "Parts_inVehicle", tonumber(parts)); setElementData(vehCol, "fuel", tonumber(fuel)); setElementData(vehCol, "receiver", tonumber(receiver)); setElementData(vehCol, "armorPointsMax", tonumber(armorPointsMax)); setElementData(vehCol, "armorPoints", tonumber(armorPoints)); xxx,yyy,zzz = setElementData(vehCol,"spawn_x"),setElementData(vehCol,"spawn_y"),setElementData(vehCol,"spawn_z"); -- Linha onde vai puxar o spawn na função acima setElementData(vehCol,"spawn",{setElementData(vehCol,"model"),xxx,yyy,zzz}); -- linha que pega o spawn e o model do vehicle for _,v in ipairs(fromJSON(items)) do setElementData(vehCol, v[1], v[2]); end end function create_tent(model, x, y, z, rX, rY, rZ, slots, scale, items, id) local tent = createObject(model, x, y, z); local tentCol = createColSphere(x, y, z, 4); setElementRotation(tent, rX, rY, rZ); setObjectScale(tent, scale); attachElements(tentCol, tent, 0, 0, 0); setElementData(tentCol, "parent", tent); setElementData(tent, "parent", tentCol); setElementData(tentCol, "tent", true); setElementData(tentCol, "vehicle", true); setElementData(tentCol, "MAX_Slots", slots); setElementData(tentCol,"visible",true) for _,v in ipairs(fromJSON(items)) do setElementData(tentCol, v[1], v[2]); end end function load_vehs(q) if (q) then local p = dbPoll(q, 0); if (#p > 0) then for _,d in pairs(p) do last_veh_id = d["id"]; create_veh(d["model"], d["x"], d["y"], d["z"], d["rX"], d["rY"], d["rZ"], d["slots"], d["fuel"],d["receiver"], d["armorPoints"], d["armorPointsMax"], d["engines"], d["moving"], d["parts"], d["items"], d["id"]); end end end noteAdmins("Veiculos Carregados!"); end function load_tents(q) if (q) then local p = dbPoll(q, 0); if (#p > 0) then for _,d in pairs(p) do last_tent_id = d["id"]; create_tent(d["model"], d["x"], d["y"], d["z"], d["rX"], d["rY"], d["rZ"], d["slots"], d["scale"], d["items"], d["id"]); end end end noteAdmins("Tendas Carregadas!"); end function start_resource () dbQuery(load_tents, {}, db, "SELECT * FROM `tents`") dbQuery(load_vehs, {}, db, "SELECT * FROM `vehicles`") end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), start_resource) addEventHandler("onPlayerCommand", root, function(cmd) if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin"))) then if (cmd == "loadtent") then --carregar tendas dbQuery(load_tents, {}, db, "SELECT * FROM `tents`"); elseif (cmd == "loadcar") then --carregar veiculos dbQuery(load_vehs, {}, db, "SELECT * FROM `vehicles`"); elseif (cmd == "savecar") then --salvar veiculos backup_vehs(); elseif (cmd == "savetent") then -- salvar tendas backup_tents(); elseif (cmd == "backup") then --start stop backup a cada 30 minutos if (isTimer(vehbkTimer) and isTimer(tentbkTimer)) then killTimer(vehbkTimer); killTimer(tentbkTimer); noteAdmins(getPlayerName(source).."#FFFFFF Backup Automatico Parado!"); else vehbkTimer = setTimer(backup_vehs, 30*60000, 0); tentbkTimer = setTimer(backup_tents, 30*60000, 0); noteAdmins(getPlayerName(source).."#FFFFFF Backup Automatico Iniciado!"); end end end end); Fiz outra alteração, porém não vai também, e da um erro direcionando para a GM, onde da em uma linha que não tem nada a ver com oque estou mexendo, ou seja creio que o erro seja onde editei, porém nao sei aonde estou errando.
  12. I finally managed too get it working. I mixed elements from the replies and other examples to understand how the element tree works. Thanks everyone for everything. Thanks for each piece of information and for the patience!
  13. try to use the latest version of this resource (here), it doesnt happens to me yeah, happened now, but only in bone id 3, if we change the bone for any other number (1~20) we will not experience that Bone IDs: 1: head 2: neck 3: spine 4: pelvis 5: left clavicle 6: right clavicle 7: left shoulder 8: right shoulder 9: left elbow 10: right elbow 11: left hand 12: right hand 13: left hip 14: right hip 15: left knee 16: right knee 17: left ankle 18: right ankle 19: left foot 20: right foot
  14. Hello. can someone tell me, is it possible to fix this error? is it possible to fix the error this in skin 0 / cj? local Timer = {} Bribe = {} function xMain_() for index,v in ipairs (getElementsByType("player")) do getArmor(v) end end addEventHandler("onResourceStart", resourceRoot, xMain_); function getArmor(v) if not isElement(v) then return end Timer[v] = setTimer( function(player) if isElement(player) then local Armor = getPlayerArmor ( player ); local x,y,z = getElementPosition ( player ); local Name = getPlayerName ( player ); if ( Armor >= 1 ) then if Bribe[player] and isElement(Bribe[player]) then return end Bribe[player] = createObject(1242,x,y,z); setObjectScale ( Bribe[player], 1.9 ) local value = getPlayerArmor(player)*100/255*140/100 setElementAlpha ( Bribe[player], 255 ) setElementCollisionsEnabled(Bribe[player],false) exports.bone_attach:attachElementToBone(Bribe[player],player,3,0,0.05,0,3,-3,0) -- bone attack --attachElements (Bribe[player],player,-0.0,0.0,0.3) ; elseif ( Armor == 0 and Bribe[player] and isElement(Bribe[player]) ) then destroyElement(Bribe[player]); Bribe[player] = nil end end end ,1000,0,v); end addEventHandler("onPlayerJoin",root, function ( ) getArmor(source); end); addEventHandler("onPlayerQuit",root, function ( ) if Timer[source] and isTimer(Timer[source]) then killTimer(Timer[source]); Timer[source] = nil end; if Bribe[source] and isElement(Bribe[source]) then destroyElement(Bribe[source]); Bribe[source] = nil end end );
  15. Patrick

    Building

    Because first time, when you press it down, the function stops in line 6, and leave. Second time, when you release the button, it starts from the beginning, again. (create again the object) But then, it not stop in line 6, and immediately deatach the new object. And old object is still attached to you.
  16. Developer.

    Building

    local player = getLocalPlayer(); local build function building(key, state) if (key == "b") then -- check Key pressed if (state == "down") then -- check state destroy(build) -- useful local x, y, z = getElementPosition(player); build = createObject(3374, x, y, z, 0, 0, 0); setElementAlpha(build, 150); attachElements(build, player , 0, 3, -1, 0, 0, 0); elseif (state =="up") then -- check state if isElementAttached(build) then setElementAlpha(build, 255); detachElements(build, player); setTimer(function() destroy(build) end, 1500, 1); end end end end bindKey("b", "both", building) function destroy(element) -- useful function if isElement(element) then -- if exists destroyElement(element) -- destroy end end
  17. MaRcell

    [HELP] IKICK

    it is a function only of those who are in that acl may be kicking the player but it doesn’t happen due to an error systemAdm/a.Lua:99: cannot use '...' outside a vararg function near '...' addCommandHandler("ikick", function(playerSource,commandName,id) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("Admin")) then if(id) then local playerID = tonumber(id) if(playerID) then local targetPlayer = getPlayerID(playerID) if targetPlayer then local reason = table.concat({...}," ") kickPlayer ( playerID, PlayerSource, reason ) end end end end end
  18. redditing

    Building

    function building(key, state) local x, y, z = getElementPosition(getLocalPlayer()) local build = createObject(3374, x, y, z, 0, 0, 0) setElementAlpha(build, 150) attachElements(build, localPlayer , 0, 3, -1, 0, 0, 0) if key=="b" and state=="up" then if isElementAttached(build) then setElementAlpha(build, 255) detachElements(build, getLocalPlayer()) end end end bindKey("b", "both", building) When I release B, he puts a block of hay for me, but I don't lose the stick which stuck to me, PLS HELP
  19. Yesterday
  20. Suas explicações foram muito esclarecedoras, muito obrigado Henry ❤️ (Darei Thanks).
  21. We opened our MTA DayZ server. Features : - Garage - Airdrop - Rank - Area 51 Radar - Old DayZ Version - Special Scoreboard and such ____________________________________________________________ Rank : ServerAddict : [ Play on the server for a total of 1000 hours ] Survivor : [ Survive one day ] SerialKiller : [ Murder 25 enemy players in a single life ] ZombieKiller : [ Kill 500 Zombies in a single life ] If you have completed the tasks, notify the authorities. _____________________________________________________________ Founder : eoL|ShadY ServerAdmin: eoL|Bonateur Coder: eoL|ShadY Server Name : GTA:SA DayZ Version [UK] | PsychosociaL | MTA: DayZ | Vip House | Garage | AirDropSystem | Adress : mtasa://185.255.94.126:22003 Herkesi beklerim. Tam seveceğiniz tarzda
  22. We opened our MTA DayZ server. Features : - Garage - Airdrop - Rank - Area 51 Radar - Old DayZ Version - Special Scoreboard and such ____________________________________________________________ Rank : ServerAddict : [ Play on the server for a total of 1000 hours ] Survivor : [ Survive one day ] SerialKiller : [ Murder 25 enemy players in a single life ] ZombieKiller : [ Kill 500 Zombies in a single life ] If you have completed the tasks, notify the authorities. _____________________________________________________________ Founder : eoL|ShadY ServerAdmin: eoL|Bonateur Coder: eoL|ShadY Server Name : GTA:SA DayZ Version [UK] | PsychosociaL | MTA: DayZ | Vip House | Garage | AirDropSystem | Adress : mtasa://185.255.94.126:22003
  23. I want put out it on github. If you add server events and some functions for exports, then we can give people a good enough bone_attach
  24. And what did you say? Do you want to share it with me? 😅 😅 And I don't have to do it too?
  25. Dutchman101

    ERROR CL25

    Please download and run MTADiag and follow the instructions. Post any Pastebin URL that MTADiag gives you in this topic.
  26. I caught trend and I'm working on optimize bone_attach. 1000 objects in stream:
  1. Load more activity