Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getDroppedMoney (source, commandName) -- [[ biistamais ]]
- if exports.integration:isPlayerSeniorAdmin(source) then
- local found
- for k, v in ipairs(getElementsByType("object")) do
- local itemID = getElementData(v, "itemID")
- if itemID == 134 then
- local value = getElementData(v, "itemValue")
- if value and value > 50000 then
- local x, y, z = getElementPosition(v)
- local int = getElementInterior(v)
- local dim = getElementDimension(v)
- outputChatBox("===========================", source, 255, 194, 0)
- outputChatBox("Atrasta nauda $" .. value .. " apmērā", source, 255, 194, 0)
- outputChatBox("ID: " .. itemID .. ", atrašanās vieta: x: " .. math.floor(x) .. ", y: " .. math.floor(y) .. ", z: " .. math.floor(z), source, 255, 194, 0)
- outputChatBox("INT: " .. int .. ", DIM: " .. dim, source, 255, 194, 0)
- outputChatBox("===========================", source, 255, 194, 0)
- found = true
- end
- end
- end
- if not found then
- outputChatBox("- Nav", source, 255, 0, 0)
- end
- end
- end
- addCommandHandler("showmoney", getDroppedMoney)
- -- SHO IELIEC IEKS ADMIN-SYSTEM s_player.commands.lua
- exports.logs:logMessage("NOMETA NAUDU " .. itemValue, 1)
- -- SHO IEKS item-system\s_world_items.lua KUR DROPOJAS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement