Jump to content

Search the Community

Showing results for tags 'impound'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Why is this script broken ? function impoundVehicle(thePlayer, commandName) if tonumber(getElementData(thePlayer, "acc:admin") or 0) >= 8 or exports.exg_dashboard:isPlayerInFaction(thePlayer, 7) then if getElementData(thePlayer, "loggedin") then for k, v in ipairs(getElementsByType("vehicle")) do local x, y, z = getElementPosition(thePlayer) local tx, ty, tz = getElementPosition(v) local int, dim = getElementInterior(thePlayer), getElementDimension(thePlayer) local tint, tdim = getElementInterior(v), getElementDimension(v) local distance = getDistanceBetweenPoints3D(x, y, z, tx, ty, tz) if distance <= 3 and int == tint and dim == tdim then local veh = v local ownerID = getElementData(veh, "veh:owner") or 0 local ownerName = getElementData(veh, "veh:oname") or "" local vehName = exports.exg_carshop:getVehicleRealName(getElementModel(veh)) local plate = getVehiclePlateText(veh) local vehID = getElementData(veh, "veh:id") setElementDimension(veh, 10000+ownerID) setElementData(veh, "veh:impounded", 1) dbExec(con, "UPDATE vehicle SET lefoglalva='1' WHERE id='" .. vehID .. "'") for key, value in ipairs(getElementsByType("player")) do if getElementData(value, "loggedin") and getElementData(value, "acc:id") == ownerID then outputChatBox(" ", value) --outputChatBox("#0094ffLos Santos Police Department:#ffffff Egy járművét szabálytalan parkolás miatt lefoglaltuk. További információkért fáradjon be a postára, és vegye át a hivatalos értesítőt.", value, 255, 255, 255, true) --outputChatBox("#0094ffTípus: #ffffff"..vehName .. "", value, 255, 255, 255, true) --outputChatBox("#0094ffRendszám: #ffffff"..plate .. "", value, 255, 255, 255, true) outputChatBox("================ #0094ffLos Santos Police Department értesítés#ffffff ================", value, 255, 255, 255, true) outputChatBox("#ffffffEgy járművét lefoglaltuk. Amennyiben szeretné kiváltani, forduljon a rendőrséghez.", value, 255, 255, 255, true) outputChatBox(" ", value) sendGroupMessage(7, getPlayerName(thePlayer) .. " lefoglalt egy járművet.") sendGroupMessage(7, "Rendszám: " .. plate .. " | Típus: " .. vehName .. "") sendGroupMessage(7, "Tulajdonosként nyílvántartott: " .. ownerName .. "") exports.mta_admin:outputAdminMessage("#7cc576" .. getPlayerName(thePlayer):gsub("_"," ") .. "#ffffff lefoglalt egy járművet. (" .. plate .. " | " .. vehID .. ")") end end end end end end end addCommandHandler("lefoglal", impoundVehicle) It works. But the cars dimension doesent change
×
×
  • Create New...