function main()
if not isSampLoaded() and not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("marker", function()
local x, y, z = getCharCoordinates(PLAYER_PED)
addSpriteBlipForCoord(x, y, z, 56)
sampAddChatMessage("Маркер установлен!", -1)
end)
while true do wait(0) end
end