Search the Community
Showing results for tags 'item'.
-
In OwlGaming Mode MTA SA RP Server sometimes my items getting Value 2. And it want to be Value 1 Defualt,When it gets Value to it converts to Infinity mode.Please someone help me Why it's happened and help me how to get my own value 2 without and admin, I Mean how to bug a Value 1 item to Value 2. Please Someone Help Mee !!!
-
- owl gaming
- bug?
-
(and 3 more)
Tagged with:
-
Bom comecei a fazer sistemas em lua a pouco tempo e gostaria de saber como eu posso criar um "item" no meu sistema tenho um mercado onde vende Kit Medico e Bandagem porem não estou com ideias de como posso fazer para esses itens serem utilizáveis o sistema já esta funcionando retirando o dinheiro definido no arquivo Shared e alertando na infobox porem ainda não sei como vou fazer para salvar esses itens a ideia inicial era vincular com um inventario e simplesmente usar o export do item no inventario pois como estava "facil" decidi me desafiar fazendo esse sisteminha e bom só preciso ter uma ideia de como posso criar estes 2 itens utilizaveis e salvo por conta
-
Hi. I have a code, but the code is very wrong. Can somebody correct it? code: dxDrawImage(getScreenFromWorldPosition(getPedBonePosition(headShowingElements[i][1], 8)) - 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad") / 2, getScreenFromWorldPosition(getPedBonePosition(headShowingElements[i][1], 8)) - 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad") / 2, 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad"), 65 * interpolateBetween(1, 1, 0, 0.15, 0, 0, getDistanceBetweenPoints3D(getCameraMatrix()) / maxDistance, "OutQuad"), "files/" .. headShowingElements[i][3] .. ".png", 0, 0, 0, tocolor(255, 255, 255, 255)) What i want: (With going up and down anim from the head) http://imgur.com/a/aHeHL What this code do (why?): http://imgur.com/a/X78mx
-
(sry for my bad english) Hi everyone! In my script when I write the command into game chatbox (/makeveh "myID" "CarModelName" "Faction" "R, G, B") i get this Error message to server console: ERROR: mta_vehicle\sourceS.lua:263: attempt to compare boolean with number. The code is: addCommandHandler("makeveh", function(player, _, ownerID, modelID, faction, r, g, b) if getElementData(player, "acc:admin") >= 7 then <--LINE 263 if not modelID or not tonumber(ownerID) then outputChatBox(rovid .. " /makeveh [Név/ID] [Model] [Frakció] [R] [G] ", player, 0, 0, 0, true) return end target, targetName = exports.mta_main:findPlayer(player, ownerID) if not target then return else ownerID = getElementData(target, "char:id") end if not tonumber(faction) then faction = 0 end if not tonumber(r) then r = 0 end if not tonumber(g) then g = 0 end if not tonumber(b) then b = 0 end r = tonumber(r) g = tonumber(g) b = tonumber(b) local vehname = tonumber(modelID) if not vehname then vehname = getVehicleModelFromName(modelID) end if not vehname then outputChatBox(rovid .. " Hibás jármű név vagy id", player, 0, 0, 0, true) return end local x, y, z = getElementPosition(target) local insertQuery = dbQuery(con, "INSERT INTO vehicle SET model=?, owner=?, pos=?, color=?, faction=?, rendszam=?", vehname, ownerID, toJSON({x,y,z}), toJSON({r,g,b}), faction, "modify") local insertResult, _, insertID = dbPoll(insertQuery, -1) if insertResult then addVehicle(ownerID, vehname, x, y, z, insertID, r, g, b, faction) exports.mta_item:giveItem(target, 34, insertID, 1, 0) exports.mta_admin:outputDeveloperMessage("#7cc576"..player:getData("char:anick").." #fffffflétrehozott egy járművet (ID: "..insertID.." Tulaj: "..targetName:gsub("_", " ")..")") dbFree(insertQuery) end end end)